Questions about Crypt::OpenPGP v1.03 with Perl v5.8.8 WindowsXP
am 06.06.2009 00:00:14 von Curtis LeachThis is a multi-part message in MIME format.
--===============1752390457==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C9E629.049D5531"
This is a multi-part message in MIME format.
------_=_NextPart_001_01C9E629.049D5531
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Hi everyone,
Does anyone have experience with using Crypt::OpenPGP ? I'm a newbie to
PGP and any help would be appreciated.
It was a bear to find precompiled versions of all the required modules
for Windows, but I was finally able to do so. I also downloaded the test
suits from CPAN to verify that it works. Only test 13-keygen.t has
problems when it tries to create a DSA key when it hit Unix Specific
code. So I'm not too worried about key generation since the docs say
this is alpha code and the DSA test eventually passes anyway.
So my question is how do I generate and store my public/private keys and
put them into the appropriate key stores for use? Can this be done in
Perl or do I need to use a 3rd party package to manage my key ring?
I tried to get around that problem by downloading & installing GnuPG
v1.4.9, but that route seems to have uncovered issues with the
Crypt::OpenPGP Perl module itself when I point Perl to GnuPG's key
stores.
After I generated the keys in GnuPG, I tried the following tests: (4th
one fails)
1) Encrypt a file & then decrypt it using GnuPG - It worked
2) Encrypt a file & then decrypt it using Crypt::OpenPGP - It worked
3) Encrypt a file with Crypt::OpenPGP & Decrypt it with GnuPG - It
worked
4) Encrypt a file with GnuPG & Decrypt it with Crypt::OpenPGP - It fails
!!!!!
So that makes me worry that when I publish my Public Key, I won't be
able to decrypt any one else's files if I can't figure out why test #4
fails.
The error I get from $pgp->errstr is "ERROR: Symkey decrypt failed:
Invalid secret key ID"
Here's the command I used to generate the encrypted file with:
gpg --output testing.txt.gpg --verbose --encrypt --recipient 81190FA0
testing.txt
And I'm using that key id in my Perl script as well.
Any pointers would be appreciated here. I went and used 11-encrypt.t as
my starting point. I'll have a brief code packet available for anyone
who can help.
Thanks
Curtis
------_=_NextPart_001_01C9E629.049D5531
Content-Type: text/html;
charset=us-ascii
Content-Transfer-Encoding: quoted-printable
charset=3Dus-ascii">
6.5.7654.12">
XP
Hi everyone,
Does anyone have experience with using =
Crypt::OpenPGP ? I'm a newbie to PGP and any help would be =
appreciated.
It was a bear to find precompiled =
versions of all the required modules for Windows, but I was finally able =
to do so. I also downloaded the test suits from CPAN to verify that it =
works. Only test 13-keygen.t has problems when it tries to create =
a DSA key when it hit Unix Specific code. So I'm not too worried =
about key generation since the docs say this is alpha code and the DSA =
test eventually passes anyway.
So my question is how do I generate and =
store my public/private keys and put them into the appropriate key =
stores for use? Can this be done in Perl or do I need to use a 3rd =
party package to manage my key ring?
I tried to get around that problem by =
downloading & installing GnuPG v1.4.9, but that route seems to have =
uncovered issues with the Crypt::OpenPGP Perl module itself when I point =
Perl to GnuPG's key stores.
After I generated the keys in GnuPG, I =
tried the following tests: (4th one fails)
1) Encrypt a file & then decrypt =
it using GnuPG - It worked
2) Encrypt a file & then decrypt =
it using Crypt::OpenPGP - It worked
3) Encrypt a file with Crypt::OpenPGP =
& Decrypt it with GnuPG - It worked
4) Encrypt a file with GnuPG & =
Decrypt it with Crypt::OpenPGP - It fails !!!!!
So that makes me worry that when I =
publish my Public Key, I won't be able to decrypt any one else's files =
if I can't figure out why test #4 fails.
The error I get from $pgp->errstr is =
"ERROR: Symkey decrypt failed: Invalid secret key ID"
Here's the command I used to generate =
the encrypted file with:
gpg --output testing.txt.gpg --verbose =
--encrypt --recipient 81190FA0 testing.txt
And I'm using that key id in my Perl =
script as well.
Any pointers would be appreciated =
here. I went and used 11-encrypt.t as my starting point. =
I'll have a brief code packet available for anyone who can =
help.
Thanks
Curtis
------_=_NextPart_001_01C9E629.049D5531--
--===============1752390457==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1752390457==--