gnupg_decryptDecrypts a given text
&reftitle.description;
stringgnupg_decryptresourceidentifierstringtext
Decrypts the given text with the keys, which were set with gnupg_adddecryptkey before.
&reftitle.returnvalues;
On success, this function returns the decrypted text.
On failure, this function returns &false;.
&reftitle.examples;
Procedural gnupg_decrypt example
]]>
OO gnupg_encrypt example
adddecryptkey("8660281B6051D071D94B5B230549F9DC851566DC","test");
$plain = $gpg -> decrypt($encrypted_text);
echo $plain;
?>
]]>