View Single Post
Old 09-01-2009, 01:42 PM   #10 (permalink)
gamer13
The Wanderer
 
gamer13's Avatar
 
Join Date: Sep 2009
Posts: 15
Thanks: 4
gamer13 is on a distinguished road
Default

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).
gamer13 is offline  
Reply With Quote