set_cipher($cipher)
Parameters: |
|
---|---|
Returns: |
CI_Encrypt instance (method chaining) |
Return type: |
CI_Encrypt |
Permits you to set an Mcrypt cipher. By default it uses MCRYPT_RIJNDAEL_256
. Example:
$this->encrypt->set_cipher(MCRYPT_BLOWFISH);
Please visit php.net for a list of available ciphers.
If you’d like to manually test whether your server supports MCrypt you can use:
echo extension_loaded('mcrypt') ? 'Yup' : 'Nope';
Please login to continue.