summaryrefslogtreecommitdiff
path: root/vendor/adodb/adodb-php/session/adodb-encrypt-sha1.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/adodb/adodb-php/session/adodb-encrypt-sha1.php')
-rw-r--r--vendor/adodb/adodb-php/session/adodb-encrypt-sha1.php31
1 files changed, 31 insertions, 0 deletions
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;