rijndael()
rijndael(string $text, string $key, string $operation) : string
Encrypts/Decrypts a text using the given key using rijndael method.
Parameters
string | $text | Encrypted string to decrypt, normal string to encrypt |
string | $key | Key to use as the encryption key for encrypted data. |
string | $operation | Operation to perform, encrypt or decrypt |
Throws
- \LogicException
When there are errors.
Returns
string —Encrypted binary string data, or decrypted data depending on operation.