gnupg_encrypt()
gnupg_encrypt - Encrypts a given text
Syntax
string gnupg_encrypt (
resource $identifier,
string $plaintext)
Arguments
- identifier - The gnupg identifier, from a call to gnupg_init() or gnupg.
- plaintext - The text being encrypted.
Description
Encrypts the given plaintext with the keys, which were set with gnupg_addencryptkeybefore and returns the encrypted text.
Version
PHP PECL gnupg >= 0.1
Return value
On success, this function returns the encrypted text. On failure, this function returns FALSE.