]>
git.wh0rd.org - tt-rss.git/blob - include/crypt.php
2 function decrypt_string($str) {
3 $pair = explode(":", $str);
5 if (count($pair) == 2) {
6 @$iv = base64_decode($pair[0]);
7 @$encstr = base64_decode($pair[1]);
10 $key = hash('SHA256', FEED_CRYPT_KEY
, true);
12 $str = mcrypt_decrypt(MCRYPT_RIJNDAEL_128
, $key, $encstr,
13 MCRYPT_MODE_CBC
, $iv);
15 if ($str) return rtrim($str);