"TYPO3 4.0.1: typo3_src-4.0.1/typo3/sysext/adodb/adodb/session/adodb-encrypt-sha1.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 if (!defined('ADODB_SESSION')) die(); 00003 00004 include_once ADODB_SESSION . '/crypt.inc.php'; 00005 00006 00011 class ADODB_Encrypt_SHA1 { 00012 00013 function write($data, $key) 00014 { 00015 $sha1crypt =& new SHA1Crypt(); 00016 return $sha1crypt->encrypt($data, $key); 00017 00018 } 00019 00020 00021 function read($data, $key) 00022 { 00023 $sha1crypt =& new SHA1Crypt(); 00024 return $sha1crypt->decrypt($data, $key); 00025 00026 } 00027 } 00028 00029 00030 00031 return 1; 00032 ?>