Apply strtolower() to hash support check in do_hash()
diff --git a/system/helpers/security_helper.php b/system/helpers/security_helper.php
index 2f3df78..8c7adea 100644
--- a/system/helpers/security_helper.php
+++ b/system/helpers/security_helper.php
@@ -82,7 +82,7 @@
 {
 	function do_hash($str, $type = 'sha1')
 	{
-		if ( ! in_array($type, hash_algos()))
+		if ( ! in_array(strtolower($type), hash_algos()))
 		{
 			$type = 'md5';
 		}