pki

= pki

Amazingly simple pki encryption, using undocumented OpenSSL functions. Use public keys to encrypt data, and private keys to decrypt them.

# uses a randomly generated RSA private key pki = Pki.new encrypted = pki.encrypt(‘monkey’) pki.decrypt(encrypted) == ‘monkey’

# load a private key from a stream. # if no public key is specified, a new one is created using the existing # private key. pki = Pki.new(:private_key => File.open(‘my_priv_key’))

# load private/public keys pki = Pki.new :private_key => “—–BEGIN RSA PRIVATE KEY—–\n…” pki.public_key = OpenSSL::PKey::RSA.new(…)

# you can pretty much load private keys from strings, from streams, or PKey objects that respond to #public_encrypt and #private_decrypt.

== Copyright

Copyright © 2009 rick. See LICENSE for details.

Related Repositories

cfssl

cfssl

CFSSL: Cloudflare's PKI and TLS toolkit ...

PKI.js

PKI.js

PKIjs is a pure JavaScript library implementing the formats that are used in PKI applications (signing, encryption, certificate requests, OCSP and TSP requests/responses). It is built on WebCrypto (Web Cryptography API) and requires no plug-ins. ...

certificate_authority

certificate_authority

Ruby gem for managing the core functions outlined in RFC-3280 for PKI ...

pki-io

pki-io

Main repo with docs etc. ...

xipki

xipki

Highly scalable and high-performance open source PKI (CA and OCSP responder), especially suitable for IoT, M2M and V2X ...


Top Contributors

technoweenie