Source for file Encryption.php
Documentation is available at Encryption.php
* LAIKA FRAMEWORK Release Notes:
* @filesource Encryption.php
* @date 2012-05-18 22:08:04 -0400 (Fri, 18 May 2012)
* @author Leonard M. Witzel <witzel@post.harvard.edu>
* @copyright Copyright (c) 2012 Laika Soft <{@link http://oafbot.com}>
* Laika_Encryption class.
//-------------------------------------------------------------------
//-------------------------------------------------------------------
public static function encrypt($key,$string){
return base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, md5(md5($key))));
public static function decrypt($key,$encrpted){
Documentation generated on Sat, 19 May 2012 02:16:59 -0400 by phpDocumentor 1.4.4