Checking the hash str length

- Matches `ext/standard/password.c` from the php source.
- Comparing the ASCII value of characters.