note 87607 deleted from function.sha1 by danbrown

From: Date: Fri, 12 Dec 2008 17:21:23 +0000
Subject: note 87607 deleted from function.sha1 by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-148085@lists.php.net to get a copy of this message
Note Submitter: Tim ---- My LDAP server performs a SSHA password hash that ends up looking like this MpvSdIo54QpREHaCH2rOg+83MPXsr9GF6kdk9A== That appears to be a 40 byte base64 encoded salted hash. I'm trying to recreate that and using... base64_encode(hash('sha1', $password)) I get a 56 byte base64 encoded hash. OTRlZjQwMmFiMzFiYzA4MjJiNWEzZjylYTUxYmIxODY0YWU3NWVkMw== Can someone help me figure out how the hash is derived and how I can recreate it via PHP?

« previous php.notes (#148085) next »