From 3a8fe689b4f12ecff55e7662129a39c620e93343 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@enhancesoft.com> Date: Fri, 2 Aug 2013 17:34:28 +0000 Subject: [PATCH] Remove temp. password --- include/class.crypto.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/include/class.crypto.php b/include/class.crypto.php index 1bff9ead9..389b38228 100644 --- a/include/class.crypto.php +++ b/include/class.crypto.php @@ -149,28 +149,6 @@ class Crypto { return $cryptos; } - function test($count=1) { - - $input = 'PASSWORD$$'; - $mkey = md5('siri'); - $skey = 'testing'; - - $cryptos = self::cryptos(); - for($i=0; $i<$count; $i++) { - foreach($cryptos as $cid => $crypto) { - if(call_user_func(array($crypto, 'exists'))) { - $ciphertext = Crypto::encrypt($input, $mkey, $skey, $cid); - echo sprintf("\n%s: [%s] => [%s] => [%s]\n", - get_class($crypto), - $input, - $ciphertext, - Crypto::decrypt($ciphertext, $mkey, $skey)); - } else - echo sprintf("\n%s: (unsupported)\n", get_clasi($crypto)); - } - } - } - function hash($string, $key) { $hash = new Crypt_Hash('sha512'); $hash->setKey($key); -- GitLab