#RSA File De- and Encryption Docu for encrypt and decrypt a large file with AES and RSA
##Keypairs
###Generate RSA Keypairs
//generates a private Key with 8196 Bit
openssl genrsa -out private.pem 8196
#RSA File De- and Encryption Docu for encrypt and decrypt a large file with AES and RSA
##Keypairs
###Generate RSA Keypairs
//generates a private Key with 8196 Bit
openssl genrsa -out private.pem 8196
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/usr/bin/env bash | |
| # | |
| # Example of multiple key AES encryption for text files using the openssl v. 0.9.8+ command line utility | |
| # Uses n public certs as key for MIME PKCS envelope, any individual private key can decrypt. | |
| # | |
| # If standard RSA ssh keys exist, these can be converted to public certs as well (and ssh keys can decrypt) | |
| # | |
| # To sign (and verify) the encrypted file, one of the private keys is required, see: | |
| # http://www.openssl.org/docs/apps/smime.html#EXAMPLES for openssl smime examples | |
| # or http://www.openssl.org/docs/apps/cms.html#EXAMPLES for cms utility (OpenSSL v. 1.0+) |