chinesebob has asked for the wisdom of the Perl Monks concerning the following question:
I am attempting to decrypt a file using a specific key and that key's password. I've tried several different modules but all of them fail. This is what I've got.
#!/usr/bin/perl -w use strict; use warnings; use GPG; my($passphrase,$key_id) = ("passphrase","KeyName"); my $gpg= new GPG(homedir=>"/home/chinesebob/.gnupg"); die $gpg->error() if $gpg->error(); my $file=$gpg->decrypt_verify($passphrase,"try.pgp");
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: GPG decryption
by Paladin (Vicar) on Jan 22, 2003 at 21:34 UTC | |
by chinesebob (Initiate) on Jan 23, 2003 at 12:02 UTC | |
by snookmz (Beadle) on Nov 16, 2004 at 21:28 UTC |
Back to
Seekers of Perl Wisdom