Login   Register  
PHP Classes
elePHPant
Icontem

File: pgpencrypt.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Max Derkachev  >  GNUPG  >  pgpencrypt.php  >  Download  
File: pgpencrypt.php
Role: ???
Content type: text/plain
Description: a demo using GNUPG class
Class: GNUPG
Author: By
Last change:
Date: 13 years ago
Size: 236 bytes
 

Contents

Class file image Download
<?php
require_once('gnupg.inc');
$message = 'test message';
$pgp = new GNUPG('Foo <foo@bar.com>');
if (!$res = $pgp->encrypt($message)) {
  print "not ok\n";
  print $pgp->error;
}
else {
  print "ok\n";
  print $res;
}
?>