in reply to Using Crypt::OpenPGP with large files

Hello roperl,

Welcome to the monastery. I have never used the Crypt::OpenPGP but by reading the documentation why don't you the encrypted line one by one in the file and decrypt it?

Sample of code from similar question Crypt::OpenPGP, encrypting messages using a public key file:

$pgp = new Crypt::OpenPGP( SecRing => $private_file ); my $plaintext = $pgp->decrypt ( Data => $cyphertext, Passphrase => $pass, ) || die $pgp->errstr();

Hope this helps, BR.

Seeking for Perl wisdom...on the process of learning...not there...yet!

Replies are listed 'Best First'.
Re^2: Using Crypt::OpenPGP with large files
by roperl (Beadle) on Jul 25, 2017 at 14:17 UTC
    The input file a mostly in binary format, so processing 1 line at a time isn't possible