I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2011-09-06 13:57:43.805513-07 by elsporko
Encryption fails for some keys, but not all
Hi there,

I am trying to create several encrypted files using different keys. The public keys were imported on the keyring using gpg and look fine to me. I run a process that throws data into a buffer which is then passed to Crypt-OpenPGP for encryption. For a couple of keys the encryption process seems to go into a loop and the encrypted file never gets created.

my $pgp = Crypt::OpenPGP->new(PubRing => $config->cfg('pubkeys')); # $buffer will become the data in the output file my $buffer; ## Fill $buffer here ## # Encrypt the data $pgp->encrypt( Data => $buffer, Armour => 1, Recipients => $key_id, );

Most of the time this produces an ASCII Armored file, but in a few small cases the process hangs during encryption.

All we require of our clients is that they send us a public key to be used to encrypt data specifically for them.
Direct Responses: 13494 | Write a response