gnupg_encrypt encrypts a given text &reftitle.description; stringgnupg_encrypt resourceidentifier stringplaintext Encrypts the given plaintext with the keys, which were set with gnupg_addencryptkey before and returns the encrypted text. &reftitle.returnvalues; On success, this function returns the encrypted text. On failure, this function returns &false;. &reftitle.examples; procedural <function>gnupg_encrypt</function> example ]]> OO <function>gnupg_encrypt</function> example addencryptkey("8660281B6051D071D94B5B230549F9DC851566DC"); $enc = $gpg -> encrypt("just a test"); echo $enc; ?> ]]>