index : flyspray | |
Archlinux32 customized Flyspray installation | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-01 09:05:48 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-01 09:05:48 +0100 |
commit | 6854cb3f4d8219cf1829e32122eb2502a916eae9 (patch) | |
tree | 350feb504587d932e02837a1442b059759927646 /vendor/adodb/adodb-php/session/adodb-encrypt-sha1.php |
-rw-r--r-- | vendor/adodb/adodb-php/session/adodb-encrypt-sha1.php | 31 |
diff --git a/vendor/adodb/adodb-php/session/adodb-encrypt-sha1.php b/vendor/adodb/adodb-php/session/adodb-encrypt-sha1.php new file mode 100644 index 0000000..7065515 --- /dev/null +++ b/vendor/adodb/adodb-php/session/adodb-encrypt-sha1.php @@ -0,0 +1,31 @@ +<?php +if (!defined('ADODB_SESSION')) die(); + +include_once ADODB_SESSION . '/crypt.inc.php'; + + +/** + + */ + +class ADODB_Encrypt_SHA1 { + + function write($data, $key) + { + $sha1crypt = new SHA1Crypt(); + return $sha1crypt->encrypt($data, $key); + + } + + + function read($data, $key) + { + $sha1crypt = new SHA1Crypt(); + return $sha1crypt->decrypt($data, $key); + + } +} + + + +return 1; |