linux poison RSS
linux poison Email

Encrypting files with OpenSSL

Need to Keep Secrets? Encrypt it.

To Encrypt:

$ openssl des3 -salt -in file.txt -out file.des3

The above will prompt for a password, or you can put it in
with a -k option, assuming you're on a trusted server.

To Decrypt

$ openssl des3 -d -salt -in file.des3 -out file.txt -k mypassword

Need to encrypt what you type? Enter the following, then start typing
and ^D to end.

$ openssl des3 -salt -out stuff.txt


1 comments:

senshikaze said...

Cool stuff, thanks!

Post a Comment

Related Posts with Thumbnails