diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-03-18 22:08:18 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-03-18 22:08:18 +0100 |
commit | 25357cd7886b95d1e77b6a539a4588a265688874 (patch) | |
tree | e9cf1fafce0abcf2174d6763d32b300987fabaf9 /system/helpers | |
parent | e3a0b2b4cba04f4f0925b6b16d15416aa66e8a85 (diff) | |
parent | 8840c96cc0608859ad4b5341c31db9bb1f833792 (diff) |
Merge pull request #1198 from freewil/do_hash
use php's hash() function for do_hash() helper
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/security_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/security_helper.php b/system/helpers/security_helper.php index e05e947a5..16dfb0de3 100644 --- a/system/helpers/security_helper.php +++ b/system/helpers/security_helper.php @@ -87,7 +87,7 @@ if ( ! function_exists('do_hash')) { function do_hash($str, $type = 'sha1') { - return ($type === 'sha1') ? sha1($str) : md5($str); + return hash($type, $str); } } |