bCrypt Migration...
#5

Fixed it... and yes it was something stupid, I got me a coffee :P wake up SkyFlare lol
Incase anyone else seems to have a issue with bCrypt this was the issue.

PHP Code:
bcrypt_check(unhashed_passpPass"OnPassCheck""dd",playeridPlayer[playerid][Password]); 
Changed to now execute like this.

PHP Code:
bcrypt_check(unhashed_passPlayer[playerid][Password], "OnPassCheck""d"playerid); 
The way bcrypt_check works is it checks your unhashed password (inputtext)
and then gets the hash(from MySQL or Enumerator)
then you get the result, however I was checking Unhashed password, for a empty string "pPass", not the Hashed Password.



EDIT: Just seen your Response now GameOvr.

Quote:
Originally Posted by GameOvr
View Post
bcrypt_check(unhashed_pass, pPass, "OnPassCheck", "dd",playerid, Player[playerid][Password]);

I didnt look much at the code just cought this, if it's not the one which cause the problem.. post "lol, its not the problem". I'll analyze then .

You are right. bcrypt is very secure almost like impossible to crack but also horribly slow.. which gives a bad sense for players about the server.
yeah it was the issue lol, I do see some slowness there, however I believe you can lower its strength to begin with, and also rehash without players ever knowing, so you can slowly increase its hash and rehash passwords over time, they will get used to the login speed lmao although new players will think its crap
Reply


Messages In This Thread
bCrypt Migration... - by SkyFlare - 27.06.2020, 23:52
Re: bCrypt Migration... - by Kwarde - 28.06.2020, 00:05
Re: bCrypt Migration... - by SkyFlare - 28.06.2020, 00:09
Re: bCrypt Migration... - by GameOvr - 28.06.2020, 09:11
Re: bCrypt Migration... - by SkyFlare - 28.06.2020, 09:44

Forum Jump:


Users browsing this thread: 1 Guest(s)