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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GNUPG Decryption Question

Status
Not open for further replies.

tbohon

Programmer
Apr 20, 2000
293
US
We routinely use gnupg for encryption of outgoing files and I'm comfortable with my scripts which do the encryption and ftp.

I'm now working with an external customer who has never in his life used pgp, gnupg, etc. Since I've only encrypted and never decrypted a file, I'm also unable to answer his questions to one he considers to be a 'guru' on this stuff :)

Anyway, in looking at gpg --help I see that the -d tag will cause it to decrypt instead of -e to encrypt. If that's correct, then I think (emphasis on the 'think') that the following should work to decrypt:

Code:
/usr/local/bin/gpg -r <private key value> --always-trust --yes -o <outputfilename> -d <inputfilename>

How close am I on this???

Tnx in advance as always.

Tom

"My mind is like a steel whatchamacallit ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top