gnupg_verify

PECL gnupg >= 0.1
gnupg_verify - Verifies a signed text
Manual
Code Examples

gnupg_verify(
     resource$identifier,
     string$signed_text,
     string$signature,
     [stringplaintext]
): array

Verifies the given signed_text and returns information about the signature.

Parameters

identifier

The gnupg identifier, from a call to gnupg_init or gnupg.

signed_text

The signed text.

signature

The signature. To verify a clearsigned text, set signature to false.

plaintext

The plain text. If this optional parameter is passed, it is filled with the plain text.

Return Values

On success, this function returns information about the signature. On failure, this function returns false.

Example of gnupg_verify

Show all examples for gnupg_verify

PHP Version: