/**
* AesCipher
*
* Encode/Decode text by password using AES-128-CBC algorithm
*//**
* AesCipher constructor.
*
* @param string $initVector Initialization vector value
* @param string|null $data Encoded/Decoded Data
* @param string|null $errorMessage Error message if operation failed
*//**
* Encrypt input text by AES-128-CBC algorithm
*
* @param string $secretKey 16/24/32 -characters secret password
* @param string $plainText Text for encryption
*
* @return self Self object instance with Data or error message
*//**
* Decrypt encoded text by AES-128-CBC algorithm
*
* @param string $secretKey 16/24/32 -characters secret password
* @param string $cipherText Encrypted text
*
* @return self Self object instance with Data or error message
*//**
* Check that secret password length is valid
*
* @param string $secretKey 16/24/32 -characters secret password
*
* @return bool
*//**
* Get encoded/decoded Data
*
* @return string|null
*//**
* Get initialization vector value
*
* @return string|null
*//**
* Get error message
*
* @return string|null
*//**
* Check that operation failed
*
* @return bool
*//**
* To string return resulting Data
*
* @return null|string
*/Fatal error: Cannot use ia\DocumentIt\DocumentIt as DocumentIt because the name is already in use in /lamp/www/iaLib/ia_examples/code/AesCipher_example_code.php on line 10 |