mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2026-02-04 13:21:34 +00:00
updated to match recent changes
This commit is contained in:
parent
05a9819d33
commit
f89504c92e
7 changed files with 66 additions and 61 deletions
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
require_once (dirname(__FILE__)."/main.php");
|
||||
|
||||
$gnupg -> setSignerKey ($fingerprint);
|
||||
$gnupg -> setEncryptKey ($fingerprint);
|
||||
$gnupg -> setPassPhrase ($passphrase);
|
||||
$gnupg -> addSignKey ($fingerprint,$passphrase);
|
||||
$gnupg -> addEncryptKey ($fingerprint);
|
||||
$text = $gnupg -> encryptsign ($mailtext);
|
||||
echo $text;
|
||||
echo "\n-------------------------\n";
|
||||
$plaintext = false;
|
||||
$gnupg -> addDecryptKey ($fingerprint,$passphrase);
|
||||
$retval = $gnupg -> decryptverify ($text,$plaintext);
|
||||
print_r($retval);
|
||||
print_r($plaintext);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue