The decrypt(
value
$value, [key
$key = null], [alg
$alg = null], [encoded
$encoded = true])
Decrypt the given value using the mcrypt library function. If the mcrypt functions do not exist, we fallback to the RC4 implementation which is shipped with Zikula.
Tags:
return:
decrypted value
Parameters:
value
$value
The value we wish to decrypt
key
$key
The encryption key to use (optional) (default=null)
alg
$alg
The encryption algirthm to use (only used with mcrypt functions) (optional) (default=null, signifies MCRYPT_RIJNDAEL_128)
encoded
$encoded
Whether or not the value is base64 encoded (optional) (default=true)
The encrypt(
value
$value, [key
$key = null], [alg
$alg = null], [encoded
$encoded = true])
Encrypt the given value using the mcrypt library function. If the mcrypt functions do not exist, we fallback to the RC4 implementation which is shipped with Zikula.
Tags:
return:
encrypted value
Parameters:
value
$value
The value we wish to decrypt
key
$key
The encryption key to use (optional) (default=null)
alg
$alg
The encryption algirthm to use (only used with mcrypt functions) (optional) (default=null, signifies MCRYPT_RIJNDAEL_128)
encoded
$encoded
Whether or not the value is base64 encoded (optional) (default=true)
This method converts the several possible return values from allegedly "boolean" ini settings to proper booleans Properly converted input values are: 'off', 'on', 'false', 'true', '0', '1' If the ini_value doesn't match any of those, the value is returned as-is.