PHP Class Dcrypt\Aes

Inheritance: extends Cryptobase
Afficher le fichier Open project: dopecode/dcrypt Class Usage Examples

Méthodes publiques

Méthode Description
decrypt ( string $cyphertext, string $password, integer $cost ) : string Decrypt cyphertext
encrypt ( string $plaintext, string $password, integer $cost ) : string Encrypt plaintext

Méthodes protégées

Méthode Description
mode ( ) : string Return the encryption mode string. "cbc" or "ctr"

Method Details

decrypt() public static méthode

Decrypt cyphertext
public static decrypt ( string $cyphertext, string $password, integer $cost ) : string
$cyphertext string Cyphertext to decrypt
$password string Password that should be used to decrypt input data
$cost integer Number of HMAC iterations to perform on key
Résultat string

encrypt() public static méthode

Encrypt plaintext
public static encrypt ( string $plaintext, string $password, integer $cost ) : string
$plaintext string Plaintext string to encrypt.
$password string Password used to encrypt data.
$cost integer Number of HMAC iterations to perform on key
Résultat string

mode() protected static méthode

Return the encryption mode string. "cbc" or "ctr"
protected static mode ( ) : string
Résultat string