Advertisement
miguelcl

OpenSSL encode-decode file

Oct 2nd, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. Base64 Encoding
  2.  
  3. To encode a file text.plain you can use
  4.  
  5. $ openssl enc aes256 -base64 -in text.plain -out text.base64
  6.  
  7. To decode a file the the decrypt option (-d) has to be used
  8.  
  9. $ openssl enc aes256 -d -base64 -in text.base64 -out text.plain
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement