Code Search for Developers
 
 
  

encryption.php from ECP (EliteCore Project) at Krugle


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

ECP (EliteCore Project)

EliteCore Project is a PHP5.1/Javascript/AJAX/XHTML/CSS framework for creating WEB 2.0 applications and services.The basic open-source instalation can be also used as an interactive personal page or BLOG.This project uses the latest features available.

Project homepage: http://sourceforge.net/projects/elitecore
Programming language(s): JavaScript,PHP,XML
License: cpl

  encryption.php
  form.php
  module_class.php
  session_interface.php