Revision 34,
757 bytes
checked in by niltonneto, 17 years ago
(diff) |
Versão nova do ADODB (4.5 para 4.95)
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[2] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /* |
---|
[34] | 4 | V4.94 23 Jan 2007 (c) 2000-2007 John Lim (jlim#natsoft.com.my). All rights reserved. |
---|
[2] | 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. |
---|
| 10 | |
---|
| 11 | */ |
---|
| 12 | |
---|
| 13 | // security - hide paths |
---|
| 14 | if (!defined('ADODB_SESSION')) die(); |
---|
| 15 | |
---|
| 16 | include_once ADODB_SESSION . '/crypt.inc.php'; |
---|
| 17 | |
---|
| 18 | /** |
---|
| 19 | */ |
---|
| 20 | class ADODB_Encrypt_MD5 { |
---|
| 21 | /** |
---|
| 22 | */ |
---|
| 23 | function write($data, $key) { |
---|
| 24 | $md5crypt =& new MD5Crypt(); |
---|
| 25 | return $md5crypt->encrypt($data, $key); |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | /** |
---|
| 29 | */ |
---|
| 30 | function read($data, $key) { |
---|
| 31 | $md5crypt =& new MD5Crypt(); |
---|
| 32 | return $md5crypt->decrypt($data, $key); |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | return 1; |
---|
| 38 | |
---|
| 39 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.