gnupg_encryptsign

PECL gnupg >= 0.2
gnupg_encryptsign - Encrypts and signs a given text
Manual
Code Examples

gnupg_encryptsign( resource$identifier, string$plaintext ): string

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.

plaintext

The text being encrypted.

Return Values

On success, this function returns the encrypted and signed text. On failure, this function returns false.

Example of gnupg_encryptsign

Show all examples for gnupg_encryptsign

PHP Version: