source: branches/comu-ver2/data/module/adodb/session/adodb-encrypt-sha1.php @ 18701

Revision 18701, 377 bytes checked in by nanasess, 14 years ago (diff)

Copyright の更新(#601)

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id Revision Date
  • Property svn:mime-type set to text/x-httpd-php
Line 
1<?php
2if (!defined('ADODB_SESSION')) die();
3
4include_once ADODB_SESSION . '/crypt.inc.php';
5
6
7/**
8
9 */
10
11class ADODB_Encrypt_SHA1 {
12
13    function write($data, $key)
14    {
15        $sha1crypt =& new SHA1Crypt();
16        return $sha1crypt->encrypt($data, $key);
17
18    }
19
20
21    function read($data, $key)
22    {
23        $sha1crypt =& new SHA1Crypt();
24        return $sha1crypt->decrypt($data, $key);
25
26    }
27}
28
29
30
31return 1;
32?>
Note: See TracBrowser for help on using the repository browser.