Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : gnupg Functions : gnupg_verify

gnupg_verify

Verifies a signed text (PECL gnupg:0.1-1.3.1)
array gnupg_verify ( resource identifier, string signed_text, string signature [, string &plaintext] )

Example 860. Procedural gnupg_verify() example

<?php
$plaintext
= "";
$res = gnupg_init();
// clearsigned
$info = gnupg_verify($res,$signed_text,false,$plaintext);
print_r($info);
// detached signature
$info = gnupg_verify($res,$signed_text,$signature);
print_r($info);
?>

Example 861. OO gnupg_verify() example

<?php
$plaintext
= "";
$gpg = new gnupg();
// clearsigned
$info = $gpg -> verify($signed_text,false,$plaintext);
print_r($info);
// detached signature
$info = $gpg -> verify($signed_text,$signature);
print_r($info);
?>

Change Language


Follow Navioo On Twitter
gnupg_adddecryptkey
gnupg_addencryptkey
gnupg_addsignkey
gnupg_cleardecryptkeys
gnupg_clearencryptkeys
gnupg_clearsignkeys
gnupg_decrypt
gnupg_decryptverify
gnupg_encrypt
gnupg_encryptsign
gnupg_export
gnupg_geterror
gnupg_getprotocol
gnupg_import
gnupg_keyinfo
gnupg_setarmor
gnupg_seterrormode
gnupg_setsignmode
gnupg_sign
gnupg_verify
eXTReMe Tracker