Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Salt
#1
It's like securing the secured.

[lua]

function createSalt()
{
$string = md5(uniqid(rand(), true));
return substr($string, 0, 3);
}
$salt - createSalt();
$hash = hash('sha256', $salt . $hash);
[/lua]

Use it, love it. Be secure kids.
[Image: chaosthegreat.png]
Reply


Messages In This Thread
Salt - by Chaos - 07-26-2011, 10:00 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)