PHP Class Encryption, huge

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: panique/huge Class Usage Examples

Public Methods

Method Description
decrypt ( string $ciphertext ) : string Decrypted a string.
encrypt ( string $plain ) : string Encrypt a string.

Private Methods

Method Description
__construct ( ) constructor for Encryption object.
hashEquals ( string $hmac, string $compare ) : boolean A timing attack resistant comparison.

Method Details

decrypt() public static method

Decrypted a string.
public static decrypt ( string $ciphertext ) : string
$ciphertext string
return string

encrypt() public static method

Encrypt a string.
public static encrypt ( string $plain ) : string
$plain string
return string