jaco has asked for the wisdom of the Perl Monks concerning the following question:
fellow monks,
I've been using Crypt::openPGP in an automated file transfer utility. However, in pulling down a file encrypted by pgp7 using my gnupgp generated public key (1024 DES) the decrypt fails in in the module. bad checksum.
using the gnupg command line utility decrypts the file with no problem
the encryption used is AES256 from what i can tell.
it appears the error is coming from line 90, Crypt::OpenPGP::Ciphertext however i seem to be getting lost in the module up until that point.
it's grabbing the blocksize correctly, pads it with a 2, so it all looks ok, so i don't understand why i'm getting an error.
i've tried unarmoring the file, in which case i get the same error.
any ideas would be helpful.
BTW, it appears if i encrypt the file locally and try to decrypt it using the module, it fails also.
Also. if you encrypt the file using the module, it decrypts fine. the same file encrypted by the module will not decrypt in gpg if you used the gnuPG compat mode... "bad key". however, if you encrypt in the module using pgp5 compat mode, gpg will decrypt it.