Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I use GNU PG

Status
Not open for further replies.

trolley

Programmer
Jan 29, 2004
62
US

I have installed gnupg from the Skunkware software packages and I am trying to encrypt a file using a key that the file will be sent to using ftp. I have tried to understand the documentation, but did not see any clear examples, in fact no examples.

Has anyone else used this software and have a few examples on how to use it.
 

I continued to search the web for the answer to my question and here is what I found.

The first thing you must do, is setup 'gpg' with the keys you will need to encrypt with:

gpg --import key-file

Then you need to set the trust level:

gpg -k > Will list the keys stored.
gpg --edit-key "key-name" trust

A question will appear asking what level to set the trust, select what you feel you need to.

Then to encrypt a file:

gpg --encrypt --recipient "key-name" filename

It will take the input file and create a file with the same name with ".gpg" at the end.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top