Pass hash Proplem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pass hash Proplem (
/showthread.php?tid=619754)
Pass hash Proplem -
KokyZ - 21.10.2016
Код:
#define PASSWORD_SALT "__+#_#+@+@D326jhoiekJIA7hsdgtt>>.:@>P(#O#Q?A@!!~~I33##LDG)#*#Y%&$(U$HHRJSGSDH3a245364RY$$$$stdfha5y4"
stock HashpPasss(const pass[])
{
new pHash[64 + 1]; SHA256_PassHash(pass, PASSWORD_SALT, pHash, sizeof(pHash));
new Hashed_Pass[128 + 1]; format(Hashed_Pass, sizeof(Hashed_Pass), "%s", pHash);
return Hashed_Pass;
}
iam always getting argument type mismatch error when i try to hash my passwords please help
Re: Pass hash Proplem -
DTV - 22.10.2016
The hashed password will never exceed 65 characters, so having it return at 128 characters is useless.
Re: Pass hash Proplem -
SickAttack - 22.10.2016
Salts should be different for each user.
Re: Pass hash Proplem -
KokyZ - 22.10.2016
please can anyone give me an code example please
Re: Pass hash Proplem -
KokyZ - 22.10.2016
Bumb
Please help
Re: Pass hash Proplem -
ThatFag - 22.10.2016
Well im using it in this way.
Код:
native WP_Hash(buffer[], len, const str[]);
usage of it
Код:
new hashPass[129];
WP_Hash(hashPass, 129, params);
Re: Pass hash Proplem -
KokyZ - 22.10.2016
Quote:
Originally Posted by ThatFag
Well im using it in this way.
Код:
native WP_Hash(buffer[], len, const str[]);
usage of it
Код:
new hashPass[129];
WP_Hash(hashPass, 129, params);
|
thanks for your help but WB_Hash is not protected from passwords cracking (password hashing salt is important and Whirepool doesn't support hashing with salt)
Re: Pass hash Proplem -
DTV - 22.10.2016
Here is a link to a tutorial on how to use this function on where it generates a random salt. The tutorial is meant for MySQL, but you should be able to adapt it into your own script should you be using something different.
Re: Pass hash Proplem -
KokyZ - 23.10.2016
okay thanks so much but i have last question why should i use diffrent salt for each player ??
Re: Pass hash Proplem -
KokyZ - 26.10.2016
Bumb