Show encryption.php syntax highlighted
<?php
/**
* Parent abstract class which is used as base for other encryption modules such as mcrypt or for built encrpytions.
*
* @package XCS_Encryption
* @author Luke Satin <cyberluk@seznam.cz>
* @version 0.9.3
*/
abstract class Abstract_Encryption_Class {
protected $cipher = NULL;
protected $key = NULL;
function __construct($cipher,$key) {
if (!extension_loaded('mcrypt')) Debug::add_report('MCRYPT Library is not installed - using built-in '.$cipher.' cipher',1);
$this->cipher=$cipher;
$this->key=$key;
}
abstract function crypt($plain_text);
abstract function decrypt($encrypted_text);
}
?>
See more files for this project here