Friday, August 26, 2011

Linux Security

How to encrypt a file in Linux ?
# gpg -c <filename >
Enter passphrase: xxxxxx
Repeat passphrase: xxxxxx
Then filename.gpg will be created. This cant be read with out decryption

How to Decrypt a file ?

#gpg filename.gpg
Enter passpharase : xxxxxx
You will get the original file

~Mari

No comments:

Post a Comment