TYPO3 CMS  TYPO3_7-6
adodb-encrypt-md5.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4 @version v5.20.3 01-Jan-2016
5 @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
6 @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
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.
12 
13 */
14 
15 // security - hide paths
16 if (!defined('ADODB_SESSION')) die();
17 
18 include_once ADODB_SESSION . '/crypt.inc.php';
19 
25  function write($data, $key) {
26  $md5crypt = new MD5Crypt();
27  return $md5crypt->encrypt($data, $key);
28  }
29 
32  function read($data, $key) {
33  $md5crypt = new MD5Crypt();
34  return $md5crypt->decrypt($data, $key);
35  }
36 
37 }
38 
39 return 1;
const ADODB_SESSION