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 textSYNOPSISstring gnupg_sign (resource $identifier, string $plaintext)DESCRIPTIONSigns 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.PARAMETERSo $identifier -The gnupg identifier, from a call to gnupg_init(3) or gnupg. o $plaintext - The plain text being signed.RETURN VALUESOn success, this function returns the signed text or the signature. On failure, this function returns FALSE.EXAMPLESExample #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 |
---|
gpgv(1) - linux |
gpgv2(1) - suse |
openssl_pkcs7_sign(3) - php |
gnupg_verify(3) - php |
mail::gnupg(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Simple Question |
test a string... |
Capturing text & putting it in different variables |
Ubuntu: 1055-1: OpenJDK vulnerabilities |
Setting alias with echoing embedded $ sign |