[Tutorial] Dealing With Passwords: Hashing and Salting
#6

Nice tutorial, this is how I do mine:

pawn Код:
New salt[100], salts[2][50];
Format(salt, 100, "my salt");
Strmid(salts[0], salt, 0, 50);
Strmid(salts[1], salt, 50, 100);
New hashedPass[300]:
Format(hashedPass, 300, "%s%s%s", salts[0], password, salts[1]);
WP_Hash(hashedPass, 300, hashedPass);
Wrote this off memory as I'm on the phone atm. I also use this method in my php scripts
Reply


Messages In This Thread
Dealing With Passwords: Hashing and Salting - by Johnson_boy - 19.02.2013, 20:13
Re: Dealing With Passwords: Hashing and Salting - by Goldino - 19.02.2013, 20:15
Re: Dealing With Passwords: Hashing and Salting - by Bicentric - 19.02.2013, 21:44
Re: Dealing With Passwords: Hashing and Salting - by ReneG - 19.02.2013, 22:02
Re: Dealing With Passwords: Hashing and Salting - by Bicentric - 19.02.2013, 22:36
Re: Dealing With Passwords: Hashing and Salting - by thefatshizms - 20.02.2013, 02:11

Forum Jump:


Users browsing this thread: 6 Guest(s)