gnupg_encryptEncrypts a given text
&reftitle.description;
stringgnupg_encryptresourceidentifierstringplaintext
Encrypts the given plaintext with the keys, which
were set with gnupg_addencryptkey before and
returns the encrypted text.
&reftitle.parameters;
identifier
&gnupg.identifier;
plaintext
The text being encrypted.
&reftitle.returnvalues;
On success, this function returns the encrypted text.
On failure, this function returns &false;.
&reftitle.examples;
Procedural gnupg_encrypt example
]]>
OO gnupg_encrypt example
addencryptkey("8660281B6051D071D94B5B230549F9DC851566DC");
$enc = $gpg -> encrypt("just a test");
echo $enc;
?>
]]>