php-gnupg/examples/encrypt.php
2005-10-07 18:59:50 +00:00

7 lines
150 B
PHP

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