19.03.2015, 23:21
Hi.
I'm having an issue with my registering system.
The problem is that nothing I get with cache_get_row is really gotten.
Output :
Because of this, every password I input (for example the one you can see in the output as "salted password") does work, and thus the player is always logged in.
I'm having an issue with my registering system.
The problem is that nothing I get with cache_get_row is really gotten.
PHP код:
printf("NUMBER OF ROWS RETURNED : %d", cache_num_rows());
cache_get_row(0, 0, test);
printf("NAME : %s", test);
cache_get_row(0, 2, actual_pass);
cache_get_row(0, 3, salt);
strcat(salted, password);
strcat(salted, ".");
strcat(salted, salt);
whirlpool(salted, hashed, WH_LENGHT+1);
printf("PASSWORD (good one) : %s", actual_pass);
printf("SALT : %s", salt);
printf("SALTED PASSWORD : %s", salted);
printf("HASHED SALTED : %s", hashed);
Код:
[23:40:01] NUMBER OF ROWS RETURNED : 1 [23:40:01] NAME : [23:40:01] PASSWORD (good one) : [23:40:01] SALT : [23:40:01] SALTED PASSWORD : ;dsnfkjfqshfsd [23:40:01] HASHED SALTED : A5FB83325A73B2498A74B68866F35CBB1E77B9A5D4E33F06986725B28B697FD150FF57D8CCB5C1DB6715CFBFFB0514FC0F2A624058748C0655C7F3E83FB071E8