gnupg_getprotocol

(PECL gnupg >= 0.1) Returns the currently active protocol for all operations int gnupg_getprotocol ( resource $identifier ) Parameters: identifier The gnupg identifier, from a call to gnupg_init() or gnupg. Returns: Returns the currently active protocol, which can be one of GNUPG_PROTOCOL_OpenPGP or GNUPG_PROTOCOL_CMS.

gnupg_geterror

(PECL gnupg >= 0.1) Returns the errortext, if a function fails string gnupg_geterror ( resource $identifier ) Parameters: identifier The gnupg identifier, from a call to gnupg_init() or gnupg. Returns: Returns an errortext, if an error has occurred, otherwise FALSE. Examples: Procedura

gnupg_export

(PECL gnupg >= 0.1) Exports a key string gnupg_export ( resource $identifier, string $fingerprint ) Exports the key fingerprint. Parameters: identifier The gnupg identifier, from a call to gnupg_init() or gnupg. fingerprint The fingerprint key. Returns: On success, this function returns the keydata. On failure,

gnupg_encryptsign

(PECL gnupg >= 0.2) Encrypts and signs a given text string gnupg_encryptsign ( resource $identifier, string $plaintext ) Encrypts and signs the given plaintext with the keys, which were set with gnupg_addsignkey and gnupg_addencryptkey before and returns the encrypted and signed text. Parameters: identifier The gnupg identifier, from a call to gnupg_init() or gnupg.

gnupg_encrypt

(PECL gnupg >= 0.1) Encrypts a given text string gnupg_encrypt ( resource $identifier, string $plaintext ) Encrypts the given plaintext with the keys, which were set with gnupg_addencryptkey before and returns the encrypted text. Parameters: identifier The gnupg identifier, from a call to gnupg_init() or gnupg. plaintext The text being

gnupg_decryptverify

(PECL gnupg >= 0.2) Decrypts and verifies a given text array gnupg_decryptverify ( resource $identifier, string $text, string &$plaintext ) Decrypts and verifies a given text and returns information about the signature. Parameters: identifier The gnupg identifier, from a call to gnupg_init() or gnupg. text The text being decrypted.

gnupg_decrypt

(PECL gnupg >= 0.1) Decrypts a given text string gnupg_decrypt ( resource $identifier, string $text ) Decrypts the given text with the keys, which were set with gnupg_adddecryptkey before. Parameters: identifier The gnupg identifier, from a call to gnupg_init() or gnupg. text The text being decrypted. Returns:

gnupg_clearsignkeys

(PECL gnupg >= 0.5) Removes all keys which were set for signing before bool gnupg_clearsignkeys ( resource $identifier ) Parameters: identifier The gnupg identifier, from a call to gnupg_init() or gnupg. Returns: Returns TRUE on success or FALSE on failure. Examples: Procedural gnupg_c

gnupg_clearencryptkeys

(PECL gnupg >= 0.5) Removes all keys which were set for encryption before bool gnupg_clearencryptkeys ( resource $identifier ) Parameters: identifier The gnupg identifier, from a call to gnupg_init() or gnupg. Returns: Returns TRUE on success or FALSE on failure. Examples: Procedural g

gnupg_cleardecryptkeys

(PECL gnupg >= 0.5) Removes all keys which were set for decryption before bool gnupg_cleardecryptkeys ( resource $identifier ) Parameters: identifier The gnupg identifier, from a call to gnupg_init() or gnupg. Returns: Returns TRUE on success or FALSE on failure. Examples: Procedural g