- uniqid: documentation ( source)
- mt_rand: documentation ( source)
- hash: documentation ( source)
- strtolower: documentation ( source)
<?php
$salt = hash('sha256', uniqid(mt_rand(), true) . 'ooga booga' . strtolower('Admin'));
$hash = $salt . $pswd;
for($i = 0; $i < 10000; $i++) {
$hash = hash('sha256', $hash);
}
echo $hash;