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

Source for file adodb-encrypt-sha1.php

Documentation is available at adodb-encrypt-sha1.php

  1. <?php
  2. if (!defined('ADODB_SESSION')) die();
  3.  
  4. include_once ADODB_SESSION '/crypt.inc.php';
  5.  
  6.  
  7. /**
  8.  
  9.  */
  10.  
  11.  
  12.     function write($data$key
  13.     {
  14.         $sha1crypt =new SHA1Crypt();
  15.         return $sha1crypt->encrypt($data$key);
  16.  
  17.     }
  18.  
  19.  
  20.     function read($data$key
  21.     {
  22.         $sha1crypt =new SHA1Crypt();
  23.         return $sha1crypt->decrypt($data$key);
  24.  
  25.     }
  26. }
  27.  
  28.  
  29.  
  30. return 1;
  31. ?>

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