public function __construct($cipher = null, $mode = null, $source = null)
{
if (!function_exists('mcrypt_encrypt')) {
throw new Exception('Error: The mcrypt extension is not installed.');
}
$this->setCipher($cipher);
$this->setMode($mode);
$this->setSource($source);
}