in reply to Re^5: Unable to get any decrypted output from $gpg->verify
in thread Unable to get any decrypted output from $gpg->verify

Thank you. I'll try again this week-end.
But here, my concern is : why should I add my secret key in plaintext ?

Regards.

Xuo.
  • Comment on Re^6: Unable to get any decrypted output from $gpg->verify

Replies are listed 'Best First'.
Re^7: Unable to get any decrypted output from $gpg->verify
by hippo (Archbishop) on Aug 22, 2023 at 21:08 UTC

    It's not the actual contents of the secret key, just the ID. $ENV{SECRET_KEY} is the 8 hex digits of your secret key ID. eg:

    $ export SECRET_KEY=0xDEADBEEF GPG_PP='Correct Horse Battery Staple' T +O_MAIL='foo@example.com'

    🦛

      Hi,
      Yes, this is what I've found on the Metacpan Crypt::GPG module description. But the script does not work at all. Then either I'm doing something wrong (bad secret key, bad passphrase, ... but running /bin/gpg -e ... works fine) or my perl module is not properly installed on my Mageia distribution.

      I've got other PCs but all using the same Mageia version. I'll try on my work PC but I'm not sure at all that the Crypt::GPG Perl module will be available. And it will tough to find an explanation to ask IT to install it :)

      Regards.

      Xuo.

        Why would you need IT to install it on your PC? Just install Perl in your home directory and you can install all the CPAN modules you want. No root permissions required.

        It's easy enough, just use Perlbrew

        Generally, it's not a good idea to use the system perl for user tasks anyway (the same goes for python, nodejs, etc...), because then you and your system will be fighting over which module version is the "correct" version and you might break your system. Use a perl installation in your home directory.

        PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP