diff --git a/phpseclib/Crypt/Hash.php b/phpseclib/Crypt/Hash.php index c7503ecb..5e9c55e4 100644 --- a/phpseclib/Crypt/Hash.php +++ b/phpseclib/Crypt/Hash.php @@ -183,6 +183,7 @@ class Crypt_Hash { */ function setHash($hash) { + $hash = strtolower($hash); switch ($hash) { case 'md5-96': case 'sha1-96':