12.11.2013, 19:21
Quote:
|
If you're using strcmp in PHP to check passwords, make sure the cAsE of the passwords are correct.
Whirlpool example: 73EFAFBCDC33B4ED05D233E0EBED165CEFF427316211795AEB 46980271FB9811408EA1A3A1D8D506E744D80BFB3A7099EAEB 8C22F89191DA3579A2BCBB38F5CE is NOT the same as 73efafbcdc33b4ed05d233e0ebed165ceff427316211795aeb 46980271fb9811408ea1a3a1d8d506e744d80bfb3a7099eaeb 8c22f89191da3579a2bcbb38f5ce and strcmp would not return 0 when these two strings are compared. Try using strtoupper($str) on the conflicting lowercase string if this is what is going wrong. |


