Help for this page

Select Code to Download


  1. or download this
    my $ct = $pgp->encrypt( Filename => 'plain.txt', Recipients => $key, C
    +ipher => 'DES3', SignKeyID => $signkey, SignPassphrase => $GPG_PP ) o
    +r die "Encryption failed: ", $pgp->errstr;
    if ($ct) {
    ...
        $err = Crypt::OpenPGP->errstr;
        print "gpg failed: $err\n";
    }
    
  2. or download this
    Data too large for key size at /opt/perl-5.26.0/lib/site_perl/5.26.0/C
    +rypt/OpenPGP/Key/Secret/DSA.pm line 33.
    
  3. or download this
        my $dlen = length $dgst;
    
        my $i = bitsize($key->q) / 8;
        croak "Data too large for key size"
            if $dlen > $i || $dlen > 50;