Pass hash Proplem
#1

Код:
#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
Reply
#2

The hashed password will never exceed 65 characters, so having it return at 128 characters is useless.
Reply
#3

Salts should be different for each user.
Reply
#4

please can anyone give me an code example please
Reply
#5

Bumb
Please help
Reply
#6

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);
Reply
#7

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)
Reply
#8

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.
Reply
#9

okay thanks so much but i have last question why should i use diffrent salt for each player ??
Reply
#10

Bumb
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)