note 105201 added to function.md5

From: Date: Tue, 02 Aug 2011 17:36:41 +0000
Subject: note 105201 added to function.md5
Groups: php.notes 
Request: Send a blank email to php-notes+get-182116@lists.php.net to get a copy of this message
/////////////////CREATE A JOOMLA! PASSWORD function CreateJoomlaPW($ConvertPass) { function rand_str($length = 32, $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890') {$chars_length = (strlen($chars) - 1); $string = $chars{rand(0, $chars_length)}; for ($i = 1; $i < $length; $i = strlen($string)) {$r = $chars{rand(0, $chars_length)}; if ($r != $string{$i - 1}) $string .= $r;} return $string;} $salt=rand_str(); $pwvalue=md5($ConvertPass.$salt); $ConvertPass=$pwvalue.':'.$salt; return $ConvertPass;} ?> ---- Server IP: 69.147.83.197 Probable Submitter: 190.98.49.205 ---- Manual Page -- http://www.php.net/manual/en/function.md5.php Edit -- https://master.php.net/note/edit/105201 Del: integrated -- https://master.php.net/note/delete/105201/integrated Del: useless -- https://master.php.net/note/delete/105201/useless Del: bad code -- https://master.php.net/note/delete/105201/bad+code Del: spam -- https://master.php.net/note/delete/105201/spam Del: non-english -- https://master.php.net/note/delete/105201/non-english Del: in docs -- https://master.php.net/note/delete/105201/in+docs Del: other reasons-- https://master.php.net/note/delete/105201 Reject -- https://master.php.net/note/reject/105201 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#182116) next »