PHP Class Horde_Pgp_Crypt_Elgamal, horde

Author: Michael Slusarz ([email protected])
Exibir arquivo Open project: horde/horde Class Usage Examples

Public Methods

Method Description
__construct ( OpenPGP_PublicKeyPacket $key ) Constructor.
decrypt ( string $text ) : string Decrypt data.
encrypt ( string $text ) : array Encrypt data.

Method Details

__construct() public method

Constructor.
public __construct ( OpenPGP_PublicKeyPacket $key )
$key OpenPGP_PublicKeyPacket Key data.

decrypt() public method

Decrypt data.
public decrypt ( string $text ) : string
$text string PKCS1-v1_5 encoded text.
return string Plaintext.

encrypt() public method

Encrypt data.
public encrypt ( string $text ) : array
$text string Plaintext.
return array Array of MPI values (c1, c2).