Tuesday, September 11, 2012

GPG File encryption Commands


GPG File encryption Commands

First install gnupg-w32cli-1.4.9.exe (or latest version) GPG tool in your system:

TO ENCRYPT FILE

C:\Program Files (x86)\GNU\GnuPG>gpg -e -r "name" filepath

Here 'name' represents the username obtained while generating GPG key.

E.g., C:\Program Files (x86)\GNU\GnuPG>gpg --yes --always-trust  --encrypt --recipient Babukannan C:\Users\ Babukannan \Desktop\XML\FOTF.XML

TO DECRYPT FILE

 C:\Program Files (x86)\GNU\GnuPG>gpg --yes --always-trust --passphrase xxxxxx --output C:\Users\ Babukannan  \Desktop\XML\FOTFB.XML -d C:\Users\ Babukannan  \Desktop\XML\FOTF.XML.GPG

Here 'xxxxx' represents the password obtained while generating GPG key.


TO GENERATE GPG KEY

Follow the steps in the below image:




TO VIEW THE GPG KEYS

C:\Program Files (x86)\GNU\GnuPG>gpg --List-keys


TO EDIT THE GPG KEYS

C:\Program Files (x86)\GNU\GnuPG>gpg --Edit-keys

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.