]> git.wh0rd.org - tt-rss.git/blobdiff - include/crypt.php
force strip_tags() on all user input unless explicitly allowed
[tt-rss.git] / include / crypt.php
index f06483ef118a963b0a074ea8009bc697158f0d08..3e26dfd5a01a36fc49a029716c018d589372def0 100644 (file)
                }
 
                return false;
-       }
-
-       function encrypt_string($str) {
-               $key = hash('SHA256', FEED_CRYPT_KEY, true);
-
-               $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128,
-                       MCRYPT_MODE_CBC), MCRYPT_RAND);
-
-               $encstr = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $str,
-                       MCRYPT_MODE_CBC, $iv);
-
-               $iv_base64 = base64_encode($iv);
-               $encstr_base64 = base64_encode($encstr);
-
-               return "$iv_base64:$encstr_base64";
-       }
-?>
+       }
\ No newline at end of file