GNUPG_VERIFY(3) 1 GNUPG_VERIFY(3)gnupg_verify - Verifies a signed textSYNOPSIS
array gnupg_verify (resource $identifier, string $signed_text, string $signature, [string &$plaintext])
DESCRIPTION
Verifies the given $signed_text and returns information about the signature.
PARAMETERS
o $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 VALUES
On success, this function returns information about the signature. On failure, this function returns FALSE.
EXAMPLES
Example #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)
Check Out this Related Man Page
GNUPG_DECRYPTVERIFY(3) 1 GNUPG_DECRYPTVERIFY(3)gnupg_decryptverify - Decrypts and verifies a given textSYNOPSIS
array gnupg_decryptverify (resource $identifier, string $text, string &$plaintext)
DESCRIPTION
Decrypts and verifies a given text and returns information about the signature.
PARAMETERS
o $identifier
-The gnupg identifier, from a call to gnupg_init(3) or gnupg.
o $text
- The text being decrypted.
o $plaintext
- The parameter $plaintext gets filled with the decrypted text.
RETURN VALUES
On success, this function returns information about the signature and fills the $plaintext parameter with the decrypted text. On failure,
this function returns FALSE.
EXAMPLES
Example #1
Procedural gnupg_decryptverify(3) example
<?php
$plaintext = "";
$res = gnupg_init();
gnupg_adddecryptkey($res,"8660281B6051D071D94B5B230549F9DC851566DC","test");
$info = gnupg_decryptverify($res,$text,$plaintext);
print_r($info);
?>
Example #2
OO gnupg_decryptverify(3) example
<?php
$plaintext = "";
$gpg = new gnupg();
$gpg -> adddecryptkey("8660281B6051D071D94B5B230549F9DC851566DC","test");
$info = $gpg -> decryptverify($text,$plaintext);
print_r($info);
?>
PHP Documentation Group GNUPG_DECRYPTVERIFY(3)
I am passing a file name as a parameter to shell script
the parameter is getfile.txt.gpg
how do i process this parameter to get name like getfile.txt only and eleminate the .gpg text??
Thanks in advance (2 Replies)
Discussion started by: rudoraj
2 Replies
2. Post Here to Contact Site Administrators and Moderators
Hi
is it possible to add signatures?
I have found option in profile config to enable it but no option to set it for my account.
I have found some discussion form 2007.
https://www.unix.com/post-here-contact-site-administrators-moderators/39610-signatures.html
Is it true signatures are... (8 Replies)
Hello,
I have standard loop
while read -r info; do
command $info
done < info
in info text file I have multiple commands each on line that I want to execute. When I used them in console they worked, but not with this loop.
This is one of the commands in info file:
grep... (4 Replies)
I saw this and am wondering how I can add a signature so it shows on my posts.
Thanks.
Visible Post Elements You have the option to show or hide various elements of messages, which may be of use to users on slow internet... (1 Reply)