in reply to Unable to get any decrypted output from $gpg->verify

The Crypt::GPG documentation suggests it only supports ASCII-armoured GPG, which usually has a ".asc" filename, not ".gpg".

Also I found a bug in Crypt::GPG. In the verify method, the regular expression /SIG_ID/g should be changed to /(SIG_ID|END_DECRYPTION)/g.

If you switch to ASCII-armoured files, patch the bug, and remove those quote marks I pointed out in the previous comment, I believe your code should start working.

That said, system seems the easier option.

Replies are listed 'Best First'.
Re^2: Unable to get any decrypted output from $gpg->verify
by Anonymous Monk on Aug 14, 2023 at 18:42 UTC
    Hi,

    Thank you for the explanations.

    I can try to create an ASCII-armoured file, but I don't see how to patch the code. Is it enough to find the file containing the regular expression /SIG_ID/g and to change it to /(SIG_ID|END_DECRYPTION)/g ?

    Regards.

    Xuo.