Posts: 1,745
Threads: 252
Joined: Dec 2011
Reputation:
0
I think I saw a topic with the solution to this a while back, but I can't find it. Basically I'm making a PHP UCP for my website.. and the hashes won't match, even though they are using the same salt etc. The whirlpool made with the server starts with 250 and the PHP starts with 814... Can anyone post a fix? I think it was something to do with if the string is a capital.. But I've used strtoupper to counter that problem.
Posts: 2,524
Threads: 109
Joined: Sep 2009
Reputation:
0
Whirlpool encryption is case-sensitive so "text" will have a different hash than "TeXT" and "Text", so do not alter the string in that aspect. However, PHP will return the hash in lowercase while PAWN in uppercase, so make sure you're ignoring the case when comparing both hashes.
Posts: 1,745
Threads: 252
Joined: Dec 2011
Reputation:
0
I'm seeing if the password and username they gave belongs to a valid account (therefore they loggedin) with a query (for example : "SELECT BLA FROM BLA WHERE username='myusrname' AND password='thepass')
Do you know a way I can do it through a query? Or should I just load the password from the account and then compare strings?
Posts: 1,745
Threads: 252
Joined: Dec 2011
Reputation:
0
lol, I meant is there A way I can toggle the case sensitivity ? I've done the query above (reason why I made this post) and the hash that the user enters is totally different from the one in the database (AKA its probably the case in php).