Urgh, I bloody hate hashing!
#1

Trying to get MD5 Salted hashing to check if the inputtext is the same as the user_form_salt table on my phpBB Forum database, and it's always saying it's wrong with the following code:

Password Checking:
http://pastebin.com/6z11J2AD

Stock:
http://pastebin.com/fBgQUSx5

Password = test123

user_form_salt:55a99d99a5dce979
server checks: 28E7C0121C2CAEA9DA190EB0C7BB5872

Any ideas?
Reply
#2

Remove hash?
Reply
#3

I'm using phpBB's users, they're hashed, so.. that's not really an option.
Reply
#4

Use Whirpool.
Reply
#5

Just use mySQL's MD5 function.

And how can he use Whirlpool if PHPBB is MD5?
Reply
#6

Quote:
Originally Posted by The_Moddler
Посмотреть сообщение
Use Whirpool.
.. with phpBB? How?
Reply
#7

Quote:
Originally Posted by Westie
Посмотреть сообщение
Just use mySQL's MD5 function.

And how can he use Whirlpool if PHPBB is MD5?
Ah then nevermind.
Reply
#8

Quote:
Originally Posted by Westie
Посмотреть сообщение
Just use mySQL's MD5 function.

And how can he use Whirlpool if PHPBB is MD5?
How exactly do you then use salt with that?
Reply
#9

Moglizorz, here's a little example.

SELECT MD5("dsadaddaddsadad");

How can you simulate that in PAWN using format?

Or, are you too lazy?

pawn Код:
format(Query, sizeof(Query), "SELECT * FROM phpbb_users WHERE username = '%s' AND user_password = MD5('%s%s')", Escape[0], inputtext, salt);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)