mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2026-02-05 05:41:34 +00:00
initial release
This commit is contained in:
parent
43e0364a82
commit
04b0e31929
14 changed files with 1381 additions and 0 deletions
24
examples/verify.php
Normal file
24
examples/verify.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
require_once (dirname(__FILE__)."/main.php");
|
||||
|
||||
$mailtext = '
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA1
|
||||
|
||||
Test test Test TeSt
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v1.2.5 (GNU/Linux)
|
||||
|
||||
iD8DBQFDRWw6BUn53IUVZtwRAoVKAJ9P0E0PKcpEuWeHNxgZRbctpETbGQCgv0Nq
|
||||
TmrOEDxc5AihrFREY+IYPp4=
|
||||
=933C
|
||||
-----END PGP SIGNATURE-----
|
||||
';
|
||||
|
||||
$plaintext = false;
|
||||
|
||||
$info = $gnupg -> verify ($mailtext,$plaintext);
|
||||
|
||||
print_r($info);
|
||||
echo "\n".$plaintext."\n";
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue