gnupg_decryptverify()
gnupg_decryptverify - Decrypts and verifies a given text
Syntax
array gnupg_decryptverify (
resource $identifier,
string $text,
string &$plaintext)
Arguments
- identifier - The gnupg identifier, from a call to gnupg_init() or gnupg.
- text - The text being decrypted.
- plaintext - The parameter plaintext gets filled with the decrypted text.
Description
Decrypts and verifies a given text and returns information about the signature.
Version
PHP PECL gnupg >= 0.2
Return value
On success, this function returns information about the signature and fills the plaintext parameter with the decrypted text. On failure, this function returns FALSE.