Monday, May 4, 2009

Encrypt and Decrypt a file with a password using GnuPG (GNU Privacy Guard) in Linux.

We can protect our data using GnuPG (GNU Privacy Guard). This will help us to encrypt file and decrypt files with password.

Command to encrypt a file :
gpg -c file

command to decrypt
gpg file.gpg


Ref :

* http://www.gnupg.org/