note 99890 deleted from function.md5 by danbrown

From: Date: Mon, 13 Sep 2010 15:08:10 +0000
Subject: note 99890 deleted from function.md5 by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-172513@lists.php.net to get a copy of this message
Note Submitter: cs at witchsoft dot com ---- <?php // this modification script produces 32 & 128 only bit hash session_start(); $session=md5(session_id()); $ip=md5($_SERVER['REMOTE_ADDR']); $salt = md5("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@#$%^&"); $pass = hash( 'MD5',$salt ); $hash = $pass.$salt.$ip.$session; $rand = rand(1, 256)%4; for ( $i = 0; $i < $rand; $i++ ) { $hash = hash('md5',$hash ); } echo "Session ID: $session<br /> IP: $ip<br> Hash: (".strlen($hash)."bit): <br /> ".$hash; ?>

« previous php.notes (#172513) next »