Query: gnupg_verify
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GNUPG_VERIFY(3) 1 GNUPG_VERIFY(3) gnupg_verify - Verifies a signed textSYNOPSISarray gnupg_verify (resource $identifier, string $signed_text, string $signature, [string &$plaintext])DESCRIPTIONVerifies the given $signed_text and returns information about the signature.PARAMETERSo $identifier -The gnupg identifier, from a call to gnupg_init(3) or gnupg. o $signed_text - The signed text. o $signature - The signature. To verify a clearsigned text, set signature to FALSE. o $plaintext - The plain text. If this optional parameter is passed, it is filled with the plain text.RETURN VALUESOn success, this function returns information about the signature. On failure, this function returns FALSE.EXAMPLESExample #1 Procedural gnupg_verify(3) 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 #2 OO gnupg_verify(3) 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); ?> PHP Documentation Group GNUPG_VERIFY(3)
Related Man Pages |
---|
gpgv(1) - redhat |
gpgv(1) - linux |
gpgv(1) - debian |
gpgv(1) - centos |
gnupg_encryptsign(3) - php |
Similar Topics in the Unix Linux Community |
---|
manipulate a passed in parameter |
Signatures |
Like to find text info from a list From-To |
How to run commands with pipe from text file? |
Create signature |