how to read WP_Hash code
#1

I have this : 6D93DBCA0741E029D9AD8048A098E6D9C08A98271A5693AC04 52C14EE332333D9277603598DC6B6BCB8DA3E8F0043D205BC7 9B3F8D5061B614AD0BDFE0402E85

code create password for new account

Code:
stock g_mysql_CreateAccount(playerid, accountPassword[])
{
	new string[256];
	new passbuffer[129];
	WP_Hash(passbuffer, sizeof(passbuffer), accountPassword);

	format(string, sizeof(string), "INSERT INTO `accounts` (`RegiDate`, `LastLogin`, `Username`, `Key`) VALUES (NOW(), NOW(), '%s','%s')", GetPlayerNameExt(playerid), passbuffer);
	mysql_function_query(MainPipeline, string, false, "OnQueryFinish", "iii", REGISTER_THREAD, playerid, g_arrQueryHandle{playerid});
	return 1;
}
like the title have any tool to read the code above ?//
Reply
#2

Did you mean want to read plain password?
No you can't.
Reply
#3

Quote:
Originally Posted by X337
View Post
Did you mean want to read plain password?
No you can't.
why ??
Reply
#4

Quote:
Originally Posted by TYDS
View Post
why ??
Hashing is one way in. It's not possible to unhash as far as I know.
Reply
#5

Quote:
Originally Posted by GoldenLion
View Post
Hashing is one way in. It's not possible to unhash as far as I know.
oh
Reply
#6

Because whirlpool is not encryption algorithm, and can't be decrypted.
Why do you want to view plain text of that hash anyway?
Reply
#7

Let's get to the core: Why would you want to read the password?
Reply
#8

Quote:
Originally Posted by Infinity
View Post
Let's get to the core: Why would you want to read the password?
For the same reason I don't use my common passwords in sa-mp servers, if i'd have to guess.
Reply
#9

Might be in case if someone forget his password in his server?
Reply
#10

If i am not wrong, it hashes same string everytime same. if so, you can try making a CMD to convert a String into Hash. using that you can at least see how its getting hashed. after some rechearch, you can catch its algorithm, and finally can read codes.

Best of luck
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)