Revision: | 1.1 |
Committed: | Fri Jun 29 07:49:47 2007 UTC (17 years, 10 months ago) by kdziedzi |
Branch: | MAIN |
CVS Tags: | V01-01-02, V01-01-01, V1_01_00, V01-01-00, V1_00_01, HEAD |
Error occurred while calculating annotation data. | |
Log Message: | Introducing new order in project |
# | Content |
---|---|
1 | <?php |
2 | if (!defined('ADODB_SESSION')) die(); |
3 | |
4 | include_once ADODB_SESSION . '/crypt.inc.php'; |
5 | |
6 | |
7 | /** |
8 | |
9 | */ |
10 | |
11 | class 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 | |
31 | return 1; |
32 | ?> |