commit | 8840c96cc0608859ad4b5341c31db9bb1f833792 | [log] [tgz] |
---|---|---|
author | freewil <sean@eternalrise.com> | Sun Mar 18 15:23:09 2012 -0400 |
committer | freewil <sean@eternalrise.com> | Sun Mar 18 15:23:09 2012 -0400 |
tree | e9cf1fafce0abcf2174d6763d32b300987fabaf9 | |
parent | e3a0b2b4cba04f4f0925b6b16d15416aa66e8a85 [diff] [blame] |
use php's hash() function for do_hash() helper
diff --git a/system/helpers/security_helper.php b/system/helpers/security_helper.php index e05e947..16dfb0d 100644 --- a/system/helpers/security_helper.php +++ b/system/helpers/security_helper.php
@@ -87,7 +87,7 @@ { function do_hash($str, $type = 'sha1') { - return ($type === 'sha1') ? sha1($str) : md5($str); + return hash($type, $str); } }