GnuPG.pm - Symmetric file encryption

WebFusion System Administrator simon.a@webfusion.co.uk
Wed, 12 Jul 2000 12:12:47 +0100


Not sure if this is right, but have you tried something like 

  symmetric => 1, 

as part of the options for the perl code?

  Simon

----- Original Message ----- 
From: sean_abel <sean_abel@clotho.com>
To: <gnupg-users@gnupg.org>
Sent: Tuesday, July 11, 2000 9:51 PM
Subject: GnuPG.pm - Symmetric file encryption



> When using GnuPG from the command line I can encrypt a file with no
> recipient. When I try to do this through Perl I get an error to that
> effect.
>
> Any ideas?
>
> command line:
>
> gpg --output file.gpg --symmetric file.txt
>
> perl code:
>
> $gpg->encrypt( plaintext => 'test/file.txt',
> output => "test/file.gpg",
> sign => 1,
> passphrase => "$passphrase"
> );
>
> Thanks in advance!
>
> Sean