Answers for "How to encrypt and decrypt a text file using openssl rsa public and private keys"

0

How to encrypt and decrypt a text file using openssl rsa public and private keys

openssl rsautl -encrypt -pubin -inkey public_key.pem -in secret.txt -out secret.enc
#where "secret.txt" is the original file and "secret.enc" is the encrypted file.

# To decrypt
openssl rsautl -decrypt -inkey private_key.pem -in secret.enc
Posted by: Guest on April-29-2022

Code answers related to "How to encrypt and decrypt a text file using openssl rsa public and private keys"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language