Posts: 547
Threads: 57
Joined: Dec 2010
The hashed password will never exceed 65 characters, so having it return at 128 characters is useless.
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
Salts should be different for each user.
Posts: 383
Threads: 70
Joined: Feb 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);
Posts: 547
Threads: 57
Joined: Dec 2010
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.
Posts: 58
Threads: 15
Joined: Sep 2016
Reputation:
0
okay thanks so much but i have last question why should i use diffrent salt for each player ??