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 @define
('HORDE_BASE', dirname(dirname(dirname(__FILE__
))) . '/horde');
17 if (!is_dir(HORDE_BASE
)) {
18 trigger_error(sprintf('Directory not found: \'%s\'', HORDE_BASE
), E_USER_ERROR
);
22 include_once HORDE_BASE
. '/lib/Horde.php';
23 include_once HORDE_BASE
. '/lib/Secret.php';
27 NOTE: On Windows 2000 SP4 with PHP 4.3.1, MCrypt 2.4.x, and Apache 1.3.28,
28 the session didn't work properly.
30 This may be resolved with 4.3.3.
33 class ADODB_Encrypt_Secret
{
36 function write($data, $key) {
37 return Secret
::write($key, $data);
42 function read($data, $key) {
43 return Secret
::read($key, $data);