Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gnupg_decryptverify(3) [php man page]

GNUPG_DECRYPTVERIFY(3)							 1						    GNUPG_DECRYPTVERIFY(3)

gnupg_decryptverify - Decrypts and verifies a given text

SYNOPSIS
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)

Check Out this Related Man Page

GNUPG_ENCRYPTSIGN(3)							 1						      GNUPG_ENCRYPTSIGN(3)

gnupg_encryptsign - Encrypts and signs a given text

SYNOPSIS
string gnupg_encryptsign (resource $identifier, string $plaintext) DESCRIPTION
Encrypts and signs the given $plaintext with the keys, which were set with gnupg_addsignkey and gnupg_addencryptkey before and returns the encrypted and signed text. PARAMETERS
o $identifier -The gnupg identifier, from a call to gnupg_init(3) or gnupg. o $plaintext - The text being encrypted. RETURN VALUES
On success, this function returns the encrypted and signed text. On failure, this function returns FALSE. EXAMPLES
Example #1 Procedural gnupg_encryptsign(3) example <?php $res = gnupg_init(); gnupg_addencryptkey($res,"8660281B6051D071D94B5B230549F9DC851566DC"); gnupg_addsignkey($res,"8660281B6051D071D94B5B230549F9DC851566DC","test"); $enc = gnupg_encryptsign($res, "just a test"); echo $enc; ?> Example #2 OO gnupg_encryptsign(3) example <?php $gpg = new gnupg(); $gpg -> addencryptkey("8660281B6051D071D94B5B230549F9DC851566DC"); $gpg -> addsignkey("8660281B6051D071D94B5B230549F9DC851566DC","test"); $enc = $gpg -> encryptsign("just a test"); echo $enc; ?> PHP Documentation Group GNUPG_ENCRYPTSIGN(3)
Man Page

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Please help me..(unix script)...

Dear Friends, I am facing a problem while selecting the test that is between start and end tags. i have a file contains, -------------- <abc> some text some text some text some text some text some text some text some text some text </abc> ===blank line====== <abc> some text some text... (7 Replies)
Discussion started by: swamymns
7 Replies

2. Shell Programming and Scripting

Need to split the file

I have a file that has text in the format below /users/test/krachel/ ! Some text ! Some Text /user/test/limo ! some text ! some text ! Some text /user/test/krachel ! Some text How can I seperate the text between a pair of '/users/test/' into seperate files ??? any information... (11 Replies)
Discussion started by: getdpg
11 Replies

3. Shell Programming and Scripting

manipulate a passed in parameter

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

4. Shell Programming and Scripting

Extracting a portion of a data file with identifier

Hi, I do have a TAB delimted text file with the following format. 1 (- identifier of each group. this text is not present in the file only number) 1 3 4 65 56 WERTF 2 3 4 56 56 GHTYHU 3 3 5 64 23 VMFKLG 2 1 3 4 65 56 DGTEYDH 2 3 4 56 56 FJJJCKC 3 3 5 64 23 FNNNCHD 3 1 3 4 65 56 JDHJDH... (9 Replies)
Discussion started by: Lucky Ali
9 Replies

5. UNIX for Dummies Questions & Answers

doubt to treat plaintext script

Hi everyone! first of all thank you all for the forum. My question is, is there a bash or java program, which addresses the existing text in the html that is visible in the web page for editing by another string, eg name1: flakjsdlñfjas Name of father: fdfjaksdfjskdfsd Well it... (1 Reply)
Discussion started by: xavilito
1 Replies

6. Shell Programming and Scripting

Capturing text & putting it in different variables

Dear friends, I have following text in a variable. /backup/rem1/10122010/res From this value of variable i want to take each text in different variables e.g. a=backup b=rem1 c=10122010 d=res please guide me to do so. Thank you in advance Anushree (5 Replies)
Discussion started by: anushree.a
5 Replies

7. UNIX for Dummies Questions & Answers

Like to find text info from a list From-To

Wrong form sorry Can be deleted (1 Reply)
Discussion started by: Jotne
1 Replies