https://github.com/randomstate/openssl_ext
Crystal bindings for OpenSSL RSA
https://github.com/randomstate/openssl_ext
crystal openssl rsa
Last synced: 11 months ago
JSON representation
Crystal bindings for OpenSSL RSA
- Host: GitHub
- URL: https://github.com/randomstate/openssl_ext
- Owner: randomstate
- License: mit
- Created: 2018-03-06T22:46:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-15T01:20:17.000Z (over 2 years ago)
- Last Synced: 2025-03-28T22:22:17.446Z (12 months ago)
- Topics: crystal, openssl, rsa
- Language: Crystal
- Size: 20.5 KB
- Stars: 15
- Watchers: 2
- Forks: 20
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# openssl_ext
RSA C Bindings for Crystal (and other extensions)
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
openssl_ext:
github: randomstate/openssl_ext
```
## Usage
```crystal
require "openssl_ext"
```
See `spec/rsa_spec.cr` and `spec/x509_spec.cr` for usage in depth.
The bindings closely follows the API for https://ruby-doc.org/stdlib-2.4.0/libdoc/openssl/rdoc/OpenSSL/PKey/RSA.html
**Encoding with a passphrase is not yet supported as OpenSSL fails silently without any errors (in order to fix).**
## Contributors
- [cimrie](https://github.com/cimrie) Connor Imrie - creator, maintainer