Quote:
Originally Posted by Wizzy951
I think that your error is because:
pawn Код:
new password[H_SHA256_LEN];
Instead of setting a lenght for the the "password" variable, you are trying to use a constant ? I think that your way of hashing the password is wrong. I would suggest you to use Whirlpool plugin, because it's the safest way to hash passwords. I haven't used SHA256, so the only thing I can suggest you is:
pawn Код:
//Change new password[H_SHA256_LEN]; //to new password[64];//actually put the length to the SHA's maximum
And hash the password after that.
Edit: if you decide to use Whirlpool instead of your methods, pm me I will help you.
|
Thanks for the reply, but actually:
Код:
#define H_SHA256_LEN 64
My error is at the last line:
Код:
mysql_query_array(query, MYSQL_REGISTER_CHECK_NAME_AVAILABILITY, {playerid, password[]}, connection);