php man page for gnupg_sign

Query: gnupg_sign

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

GNUPG_SIGN(3)								 1							     GNUPG_SIGN(3)

gnupg_sign - Signs a given text

SYNOPSIS
string gnupg_sign (resource $identifier, string $plaintext)
DESCRIPTION
Signs the given $plaintext with the keys, which were set with gnupg_addsignkey before and returns the signed text or the signature, depending on what was set with gnupg_setsignmode.
PARAMETERS
o $identifier -The gnupg identifier, from a call to gnupg_init(3) or gnupg. o $plaintext - The plain text being signed.
RETURN VALUES
On success, this function returns the signed text or the signature. On failure, this function returns FALSE.
EXAMPLES
Example #1 Procedural gnupg_sign(3) example <?php $res = gnupg_init(); gnupg_addsignkey($res,"8660281B6051D071D94B5B230549F9DC851566DC","test"); $signed = gnupg_sign($res, "just a test"); echo $signed; ?> Example #2 OO gnupg_sign(3) example <?php $gpg = new gnupg(); $gpg->addsignkey("8660281B6051D071D94B5B230549F9DC851566DC","test"); $signed = $gpg->sign("just a test"); echo $signed; ?> PHP Documentation Group GNUPG_SIGN(3)
Related Man Pages
gpgv2(1) - centos
gpgv2(1) - suse
openssl_pkcs7_sign(3) - php
gnupg_encryptsign(3) - php
gnupg_sign(3) - php
Similar Topics in the Unix Linux Community
test a string...
if test -f $file_exists
Extracting a portion of a data file with identifier
Ubuntu: 1055-1: OpenJDK vulnerabilities
Setting alias with echoing embedded $ sign