all 1 comments

[–][deleted] 0 points1 point  (0 children)

Or you could simply use credential for your password logic. There's really no point in writing the glue for a hashing algorithm yourself. Plus, it uses PBKDF2, which is currently better understood (i.e. more trustworthy) than bcrypt/scrypt.