Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OpenSSL_Command_Line_Encryption-Decryption_examples
- Encrypt
- $ echo "A Quick Brown Fox Jumped Over the Grey Lazy Dog" | openssl enc -e -base64 -aes-256-ctr -nosalt -pbkdf2 -k secret_password
- vcrAQFIMfJjMUxtG0sVQDPDhpriPU17TiwxwaddPVhhFj/XUxK6rPaG6T5SIrFNJ
- Decrypt
- $ echo "vcrAQFIMfJjMUxtG0sVQDPDhpriPU17TiwxwaddPVhhFj/XUxK6rPaG6T5SIrFNJ" | openssl enc -d -base64 -aes-256-ctr -nosalt -pbkdf2 -k secret_password
- A Quick Brown Fox Jumped Over the Grey Lazy Dog
- Encrypt
- $ openssl enc -aes-256-cbc -salt -a -in file.txt -out file.txt.enc -k PASS
- To encrypt file in Base64-encode, you should add -a option:
- Decrypt
- $ openssl enc -aes-256-cbc -d -a -in file.txt.enc -out file.txt -k PASS
Add Comment
Please, Sign In to add comment