17.05.2015

Шифрование/дешифрование файла с openssl

Encrypt:
openssl aes-256-cbc -a -salt -in secrets.txt -out secrets.txt.enc

Decrypt:
openssl aes-256-cbc -d -a -in secrets.txt.enc -out secrets.txt.new


use openssl(*from the CLI) to encrypt a message using my public key and then decrypt it using my private key

Encrypt:
openssl rsautl -pubin -inkey key.pub -encrypt -in message.txt -out message.enc

Decrypt:
openssl rsautl -inkey privkey.pem -decrypt -in message.enc -out message.dec


http://indy.fulgan.com/SSL/ ---for Windows.