ircmaxell / PHP-PasswordLib

A library for generating and validating passwords
373 stars 61 forks source link

Fix sha alphabet #12

Open ktomk opened 11 years ago

ktomk commented 11 years ago

Unix crypt SHA256/SHA512 are using the wrong alphabet for salts.

First some changes to the tests to show that the current implementation is broken.

Then the fixes.

ktomk commented 11 years ago

Build fails as expected: https://travis-ci.org/ircmaxell/PHP-PasswordLib/builds/9407235

ircmaxell commented 11 years ago

Can we fix those failing tests?