Zikula 1.0.1
[ class tree: Zikula 1.0.1 ] [ index: Zikula 1.0.1 ] [ all elements ]

Source for file adodb-encrypt-md5.php

Documentation is available at adodb-encrypt-md5.php

  1. <?php
  2.  
  3. /*
  4. V4.97 22 Jan 2008  (c) 2000-2008 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.
  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.     /**
  21.      */
  22.     function write($data$key{
  23.         $md5crypt =new MD5Crypt();
  24.         return $md5crypt->encrypt($data$key);
  25.     }
  26.  
  27.     /**
  28.      */
  29.     function read($data$key{
  30.         $md5crypt =new MD5Crypt();
  31.         return $md5crypt->decrypt($data$key);
  32.     }
  33.  
  34. }
  35.  
  36. return 1;
  37.  
  38. ?>

Documentation generated on Fri, 18 Jul 2008 21:39:25 +0200 by phpDocumentor 1.4.1