The script is surpose to encrypt a password so that it is much harder to use rainbowtables on it and there for people cannot hack the server so easily, but i cant seem to get it to work so i hope one of you can help me.
<?php
function enc($string){
$salt = "randomsalt";
$hash = sha1(md5($salt.$string)) . $md5($string) . sha1(md5(md5($string)));
return $hash;
}
echo enc('password');
?>