note 104232 added to function.sha1

From: Date: Thu, 02 Jun 2011 12:05:55 +0000
Subject: note 104232 added to function.sha1
Groups: php.notes 
Request: Send a blank email to php-notes+get-180188@lists.php.net to get a copy of this message
SSHA LDAP password generation algorithm for standard PHP > 5.0 public function hashSSHA($password) { $salt = sha1(rand()); $salt = substr($salt, 0, 4); $hash = base64_encode( sha1($password . $salt, true) . $salt ); return $hash; } ---- Server IP: 69.147.83.197 Probable Submitter: 193.40.194.222 ---- Manual Page -- http://www.php.net/manual/en/function.sha1.php Edit -- https://master.php.net/note/edit/104232 Del: integrated -- https://master.php.net/note/delete/104232/integrated Del: useless -- https://master.php.net/note/delete/104232/useless Del: bad code -- https://master.php.net/note/delete/104232/bad+code Del: spam -- https://master.php.net/note/delete/104232/spam Del: non-english -- https://master.php.net/note/delete/104232/non-english Del: in docs -- https://master.php.net/note/delete/104232/in+docs Del: other reasons-- https://master.php.net/note/delete/104232 Reject -- https://master.php.net/note/reject/104232 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180188) next »