The Art of Password Protection in PHP(img64.imageshack.us) |
The Art of Password Protection in PHP(img64.imageshack.us) |
function generateHash($pwd) {
$h = new PasswordHash(8, false);
return $h->HashPassword($pwd);
}If one were feeling really unkind, one could note that languages at the opposite end of the spectrum to PHP tend bring about this tendency - maybe you need some kind of snark compiler to enforce this kind of thing so that you don't have to rely on expertise?