note 94385 deleted from function.md5 by tularis

From: Date: Thu, 14 Jul 2011 22:48:26 +0000
Subject: note 94385 deleted from function.md5 by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181521@lists.php.net to get a copy of this message
Note Submitter: gigatop100 at Hotmail dot com ---- look my own created super password function :) <? function enchsetenev($toencode,$times) { $salt = 's+(_a*'; for($zo=0;$zo<$times;$zo=$zo+1) { $toencode = hash('sha512',salt.$toencode); $toencode = md5($toencode.$salt); } return $toencode; } ?> how to use it ? simply.. <? $password="this password is super ultra mega secure and noone would decrypt it for atleast 10 years.. or even alot more :)"; $supersecurepassword=enchsetenev($password,1000); ?> now 1000 is a somehow a fast processed password, i mean it won't take much time to encode it... in most cases about 100-200ms (depends..) however if you put 10000 (10 000 times encrypted with hash sha512 and md5 ) that would take about 1 second to process

« previous php.notes (#181521) next »