I know this is an old question, but I had the same problem and came up with it.
CodeIgniter - . , , PHP mcrypt, , , .
, mcrypt, , dev .
. , MY_Encrypt.php:
1. mcrypt , :
class MY_Encrypt extends CI_Encrypt
{
public function __construct()
{
if ( ! function_exists('mcrypt_encrypt')) {
throw new Exception("Encryption requires mcrypt PHP extension!");
}
parent::__construct();
}
}
. mcrypt, :
class MY_Encrypt extends CI_Encrypt
{
public function __construct()
{
parent::__construct();
$this->_mcrypt_exists = FALSE;
}
}
, CodeIgniter .
IMHO, , . - .