Help for this page

Select Code to Download


  1. or download this
    use Crypt::OpenPGP;
    $pgp = Crypt::OpenPGP->new ();
    ...
    open(PRIVATE,">test.private") or die "COULD NOT OPEN priv\n"; 
    print PRIVATE $private; 
    close(PRIVATE);
    
  2. or download this
    use Crypt::OpenPGP;
    use Crypt::OpenPGP::KeyRing;
    ...
       Armour => 1,
    );
    defined($crypt) ? print $crypt : die $pgp->errstr;
    
  3. or download this
    $pgp = Crypt::OpenPGP->new (
           "SecRing" => './pgp/test.private'
    ...
                print "Enter passphrase: ";
            }
        }