09-01-2009, 01:42 PM
|
#10 (permalink)
|
|
The Wanderer
Join Date: Sep 2009
Posts: 15
Thanks: 4
|
Mostly I use this technique:
PHP Code:
<?php
function customHashFunction($password)
{
return md5(pack('H*', md5($password)) . $password);
}
It generates a fairly strong salted md5 hash, because the pack-function returns a low-valued ASCII code, which might not even be printable (values below ASCII 32, which is a space).
|
|
|
|