summaryrefslogtreecommitdiff
path: root/include/crypt.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-08-13 15:59:24 +0300
committerAndrew Dolgov <[email protected]>2018-08-13 15:59:24 +0300
commit069aea5989ec7fe4090cf3f1151f99476fa038be (patch)
tree23c48c13d8baf5d9dc72e2c7fe6615e2ae32d6c6 /include/crypt.php
parenteb43d9f4a8a8609b7f30ef4e2add425b9c91fe00 (diff)
remove FEED_CRYPT_KEY and everything related to it
always assume auth_pass_encrypted is false
Diffstat (limited to 'include/crypt.php')
-rw-r--r--include/crypt.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/crypt.php b/include/crypt.php
deleted file mode 100644
index 3e26dfd5a..000000000
--- a/include/crypt.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
- function decrypt_string($str) {
- $pair = explode(":", $str);
-
- if (count($pair) == 2) {
- @$iv = base64_decode($pair[0]);
- @$encstr = base64_decode($pair[1]);
-
- if ($iv && $encstr) {
- $key = hash('SHA256', FEED_CRYPT_KEY, true);
-
- $str = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $encstr,
- MCRYPT_MODE_CBC, $iv);
-
- if ($str) return rtrim($str);
- }
- }
-
- return false;
- } \ No newline at end of file