From d6e54e022c876f85ee8909ac94a4f675edcb0ad6 Mon Sep 17 00:00:00 2001 From: matthiasgrimm Date: Fri, 13 May 2005 20:23:41 +0200 Subject: fix ssha hash algorithm wrong variable used in ssha hash algorithm - fixed darcs-hash:20050513182341-7ef76-ca2263503c39ed209ca38c86b295ea30cd0b11b1.gz --- inc/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/auth.php b/inc/auth.php index 6be220cf5..72fbd2c48 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -470,7 +470,7 @@ function auth_cryptPassword($clear,$method='',$salt=''){ return sha1($clear); case 'ssha': $salt=substr($salt,0,4); - return '{SSHA}'.base64_encode(pack("H*", sha1($password.$salt)).$salt); + return '{SSHA}'.base64_encode(pack("H*", sha1($clear.$salt)).$salt); case 'crypt': return crypt($clear,substr($salt,0,2)); default: -- cgit v1.2.3