View Single Post
  #9   (View Single Post)  
Old 9th October 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 320
Default

Quote:
Originally Posted by BSDfan666 View Post
I would use OpenSSL, but that's just me...

$ openssl enc -aes-256-cbc -salt -in naughty-doc.txt -out naughty-doc.encrypt

This will prompt you for a passphrase, now.. that can be a password, but it can also be a phrase.. you'll definitely need to remember the grammar & capitalization though.

If you decide to use a password, make it a long and complex one...

To decrypt the file:
$ openssl enc -d -aes-256-cbc -in naughty-doc.encrypt -out naughty-doc.txt

You can obtain a list of ciphers via:
$ openssl enc -h

Good luck..
thanks this is good and nice method , but if I can use it for encrypt folder or directory it is great
Can I use it for encrypt folder ???
Reply With Quote