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

8 lines
187 B
PHP

<?php
require_once (dirname(__FILE__)."/main.php");
$gnupg -> setSignerKey ($fingerprint);
$gnupg -> setPassPhrase ($passphrase);
$text = $gnupg -> sign ($mailtext);
echo $text;
?>