note 94385 added to function.md5

From: Date: Sun, 01 Nov 2009 13:23:00 +0000
Subject: note 94385 added to function.md5
Groups: php.notes 
Request: Send a blank email to php-notes+get-162321@lists.php.net to get a copy of this message
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 ---- Server IP: 69.147.83.197 Probable Submitter: 91.139.212.118 ---- Manual Page -- http://www.php.net/manual/en/function.md5.php Edit -- https://master.php.net/note/edit/94385 Del: integrated -- https://master.php.net/note/delete/94385/integrated Del: useless -- https://master.php.net/note/delete/94385/useless Del: bad code -- https://master.php.net/note/delete/94385/bad+code Del: spam -- https://master.php.net/note/delete/94385/spam Del: non-english -- https://master.php.net/note/delete/94385/non-english Del: in docs -- https://master.php.net/note/delete/94385/in+docs Del: other reasons-- https://master.php.net/note/delete/94385 Reject -- https://master.php.net/note/reject/94385 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#162321) next »