php-gnupg/examples/encrypt.php
2005-10-25 19:37:32 +00:00

7 lines
150 B
PHP

<?php
require_once (dirname(__FILE__)."/main.php");
$gnupg -> addEncryptKey ($fingerprint);
$text = $gnupg -> encrypt ($mailtext);
echo $text;
?>