06.03.2010, 22:02
Whirlpool is not working. It encrypts the password but wrongly...
The code:
When a player enters their password, for example "lol". The encrypted password should be "22FB46E1955A8AEB31C59D" but what the WP_Hash returns is: "22FB46E1955A8AEB31C59D79D887D02AF2D1BC4524E85AAFA 2455CC78BC0147B10DD477201D147E2F5CA910BB43D9823204 78B9D179DDDE85F4806497FE2EE68"
As you can see, it starts off with the right stuff then it goes into another planet....
I have also tried WP_Hash(string, sizeof(string), "lol") and that returns "22FB46E1955A8AEB31C59D79D887D02AF2D1BC4524E85AAFA 2455CC78BC0147B10DD477201D147E2F5CA910BB43D9823204 78B9D179DDDE85F4806497FE2EE68"
Please help me. Thanks.
The code:
Код:
public OnPlayerText(playerid, text[]) { new string[256]; if (MenuShown[playerid] == true) { strmid(PassBox[playerid], text, 0, strlen(text), 128); TextDrawSetString(Pass[playerid], "Wrong password"); WP_Hash(string, sizeof(string), PassBox[playerid]); printf("DebugPassword: %s", string); PlayerLogIn(playerid, string); return false; }
As you can see, it starts off with the right stuff then it goes into another planet....
I have also tried WP_Hash(string, sizeof(string), "lol") and that returns "22FB46E1955A8AEB31C59D79D887D02AF2D1BC4524E85AAFA 2455CC78BC0147B10DD477201D147E2F5CA910BB43D9823204 78B9D179DDDE85F4806497FE2EE68"
Please help me. Thanks.