6 V4.01 23 Oct 2003 (c) 2000-2004 John Lim (jlim@natsoft.com.my). All rights reserved.
7 Contributed by Ross Smith (adodb@netebb.com).
8 Released under both BSD license and Lesser GPL library license.
9 Whenever there is any discrepancy between the two licenses,
10 the BSD license will take precedence.
11 Set tabs to 4 for best viewing.
15 include_once ADODB_SESSION
. '/crypt.inc.php';
19 class ADODB_Encrypt_MD5
{
22 function write($data, $key) {
23 $md5crypt =& new MD5Crypt();
24 return $md5crypt->encrypt($data, $key);
29 function read($data, $key) {
30 $md5crypt =& new MD5Crypt();
31 return $md5crypt->decrypt($data, $key);