note 49679 added to function.microtime

From: Date: Fri, 04 Feb 2005 15:23:34 +0000
Subject: note 49679 added to function.microtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-84526@lists.php.net to get a copy of this message
md5(microtime()) is probably a fine method for low security or temporary passwords but I wouldn't use it for anything critical because the pattern is absolutely predictable. e.g. If I have an idea of the time frame in which the password was generated in this manner it'd be a simple matter to write a script that generates all possible md5sums for microtime() within' that frame. The less sure I am of when the password was generated the bigger my list would have to be but you get the idea. ---- Manual Page -- http://www.php.net/manual/en/function.microtime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49679 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49679&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49679&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49679&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49679&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49679&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49679&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84526) next »