defuse / password-hashing

Password hashing code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP implementation wastes 1 hash computation to determine the hash length

defuse opened this issue · comments

Noticed this during my audit. It's not strictly necessary since you can unroll the first iteration of the loop and get the length there. However, it's only one hash computation, so I'm not going to fix it.