Discussion Locked

pgp encryption and pass phrases

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Does anyone know a good way of scripting the pass phrase on a pgp encrypted file? We need to automate the decryption of a file that is pass phrase protected.

1 reply

by drknotts

Assuming that your passphrase is PassPhrase and the file to be decrypted is EncryptedFile.pgp, you would include the following lines in your script:

set PGPPASS=PassPhrase
pgp EncryptedFile.pgp

This discussion is closed to new replies.