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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.