"TYPO3 4.0.1: typo3_src-4.0.1/typo3/sysext/adodb/adodb/session/adodb-encrypt-md5.php Source File", "datetime" => "Sat Dec 2 19:22:26 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>
00001 <?php 00002 00003 /* 00004 V4.90 8 June 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved. 00005 Contributed by Ross Smith (adodb@netebb.com). 00006 Released under both BSD license and Lesser GPL library license. 00007 Whenever there is any discrepancy between the two licenses, 00008 the BSD license will take precedence. 00009 Set tabs to 4 for best viewing. 00010 00011 */ 00012 00013 // security - hide paths 00014 if (!defined('ADODB_SESSION')) die(); 00015 00016 include_once ADODB_SESSION . '/crypt.inc.php'; 00017 00020 class ADODB_Encrypt_MD5 { 00023 function write($data, $key) { 00024 $md5crypt =& new MD5Crypt(); 00025 return $md5crypt->encrypt($data, $key); 00026 } 00027 00030 function read($data, $key) { 00031 $md5crypt =& new MD5Crypt(); 00032 return $md5crypt->decrypt($data, $key); 00033 } 00034 00035 } 00036 00037 return 1; 00038 00039 ?>