Fix CRLF
[openemr.git] / library / adodb / session / adodb-encrypt-md5.php
blob66fc9b6f9cedec0c13f314b2c29ba1f54b7a961b
1 <?php
3 // $CVSHeader$
5 /*
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';
17 /**
19 class ADODB_Encrypt_MD5 {
20 /**
22 function write($data, $key) {
23 $md5crypt =& new MD5Crypt();
24 return $md5crypt->encrypt($data, $key);
27 /**
29 function read($data, $key) {
30 $md5crypt =& new MD5Crypt();
31 return $md5crypt->decrypt($data, $key);
36 return 1;