The Art of Password Protection in PHP

  • "And then I stopped dicking around and used solar designer's phpass..."

         function generateHash($pwd) {
           $h = new PasswordHash(8, false);
           return $h->HashPassword($pwd);
         }

  • I hope no one is doing anything involving passwords in PHP.

  • ...and then i wanted to email the passwords back to my users in regular intervals and went back to step one.