2 if (!defined('ADODB_SESSION')) die();
4 include_once ADODB_SESSION
. '/crypt.inc.php';
11 class ADODB_Encrypt_SHA1
{
13 function write($data, $key)
15 $sha1crypt =& new SHA1Crypt();
16 return $sha1crypt->encrypt($data, $key);
21 function read($data, $key)
23 $sha1crypt =& new SHA1Crypt();
24 return $sha1crypt->decrypt($data, $key);