Méthode | Description | |
---|---|---|
__construct ( string $key, integer $strength = 256, string $mode = 'cbc' ) | Initialise the AES encryption object | |
decryptString ( string $stringToDecrypt, boolean $base64encoded = true ) : string | Decrypts a ciphertext into a plaintext string using AES | |
encryptString ( string $stringToEncrypt, boolean $base64encoded = true ) : string | Encrypts a string using AES | |
isSupported ( |
Is AES encryption supported by this PHP installation? |
public decryptString ( string $stringToDecrypt, boolean $base64encoded = true ) : string | ||
$stringToDecrypt | string | The ciphertext to decrypt. The first 16 bytes of the raw string must contain the IV (initialisation vector). |
$base64encoded | boolean | Should I Base64-decode the data before decryption? |
Résultat | string | The plain text string |
public encryptString ( string $stringToEncrypt, boolean $base64encoded = true ) : string | ||
$stringToEncrypt | string | The plaintext to encrypt |
$base64encoded | boolean | Should I Base64-encode the result? |
Résultat | string | The cryptotext. Please note that the first 16 bytes of the raw string is the IV (initialisation vector) which is necessary for decoding the string. |
public static isSupported ( |
||
$phpfunc | ||
Résultat | boolean |