Sunday, December 26, 2010

Asymmetric Key Encryption & Decryption using gpg

Encryption:-

gpg -a -r ( recepient-keyID ) --encrypt ( filename )

-a is ascii option ,it is needed only if you need encrypted file in ascii format

Decryption:-

gpg --decrypt ( encrypted-file )

No comments:

Post a Comment