Wednesday, October 10, 2007

Encrypting file in Linux

To encrypt single file, use command gpg

$ gpg -c filename

Enter Passphrase:
Repeat passphrase:

File becomes filename.gpg

To Decrypt

gpg filename.gpg
gpg: CAST5 encrypted data
gpg: Enter passphrase

original file is extracted out of the encrypted file

No comments: