note 81958 deleted from function.md5 by tularis
| From: | tularis@php.net | Date: | Fri, 21 Mar 2008 10:06:23 +0000 |
| Subject: | note 81958 deleted from function.md5 by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-137256@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
this is in reply to stevish
I was wondering if this could help
<?php
$password = $_POST['password'];
$length=strlen($password);
$divide=round($length/2);
$pass=str_split($password, $divide);
$salt ="097ever";
$pass1=md5($pass[0]);
$pass2=md5($pass[1]);
$newpass=md5($pass1.$salt.$pass2);
?>