Posts: 933
Threads: 62
Joined: May 2011
Reputation:
0
*bump*
Anybody help?Please I need help about this!
Posts: 933
Threads: 62
Joined: May 2011
Reputation:
0
gaaaaa fucking bump
aNYONE CAN HELP?
Posts: 6,129
Threads: 36
Joined: Jan 2009
That's not how you compare strings, Wesley221. You use strcmp.
@OP - I'm not sure of any additional notes, there probably aren't any.
Posts: 1,564
Threads: 98
Joined: Apr 2011
Reputation:
0
Hmm, in my admin fs im doing it like that; and that's working.
In my Admin FS i got " if(num_hash(inputtext) == dini_Int(file, "Password")) "
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by Wesley221
Hmm, in my admin fs im doing it like that; and that's working.
In my Admin FS i got " if(num_hash(inputtext) == dini_Int(file, "Password")) "
|
Yes, presumably num_hash converts your string into an integer and compares it to an integer. dini_Int is obviously handling an integer, not a string.
Posts: 933
Threads: 62
Joined: May 2011
Reputation:
0
when I use dudb that was work, but with whirlpool it doesn't I don't now why, when I type the hashed password (from the .ini file) than I can login
Posts: 1,317
Threads: 23
Joined: Feb 2010
Reputation:
0
Hash means, that it pulls the string you input through an algorithm -NEVER- be de-hashed (or w/e its called).
Every string you input should be unique, Whirlpool is mainly security that even if hackers manage to get in the users files, they still only have the hashed password.
To get to the point; in your login system, you need to hash the users password, and compare that with the hashed password from when they registerd.