Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. # encrypt file.txt to file.enc using 256-bit AES in CBC mode
  2. openssl enc -aes-256-cbc -salt -in file.txt -out file.enc
  3.  
  4. # the same, only the output is base64 encoded for, e.g., e-mail
  5. openssl enc -aes-256-cbc -a -salt -in file.txt -out file.enc
  6.  
  7. # decrypt binary file.enc
  8. openssl enc -d -aes-256-cbc -in file.enc -out file.txt
  9.  
  10. # decrypt base64-encoded version
  11. openssl enc -d -aes-256-cbc -a -in file.enc -out file.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement