Location: PHPKode > scripts > GNUPG > gnupg/pgpencrypt.php
<?php
require_once('gnupg.inc');
$message = 'test message';
$pgp = new GNUPG('Foo <hide@address.com>');
if (!$res = $pgp->encrypt($message)) {
  print "not ok\n";
  print $pgp->error;
}
else {
  print "ok\n";
  print $res;
}
?>
Return current item: GNUPG