Support for larger size codes (such as SNOMED US Extension codes)
[openemr.git] / gacl / adodb / session / adodb-encrypt-md5.php
blob22c037f677a59f03b6344f0947fd76aac438df74
1 <?php
3 /*
4 V4.92a 29 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
5 Contributed by Ross Smith (adodb@netebb.com).
6 Released under both BSD license and Lesser GPL library license.
7 Whenever there is any discrepancy between the two licenses,
8 the BSD license will take precedence.
9 Set tabs to 4 for best viewing.
13 // security - hide paths
14 if (!defined('ADODB_SESSION')) die();
16 include_once ADODB_SESSION . '/crypt.inc.php';
18 /**
20 class ADODB_Encrypt_MD5 {
21 /**
23 function write($data, $key) {
24 $md5crypt =& new MD5Crypt();
25 return $md5crypt->encrypt($data, $key);
28 /**
30 function read($data, $key) {
31 $md5crypt =& new MD5Crypt();
32 return $md5crypt->decrypt($data, $key);
37 return 1;