Dialog Error :/
#1

How the hell it's possible

Code :

PHP код:
if (strcmp(PlayerInfo[playerid][pPass], udb_hash(inputtext))) 
Error :

PHP код:
error 035argument type mismatch (argument 2
o.O

Thanks in advence
Reply
#2

udb_hash returns an integer. You better use SHA256_PassHash function for hashing the passwords which includes a salt combination as well.
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
udb_hash returns an integer. You better use SHA256_PassHash function for hashing the passwords which includes a salt combination as well.
There no way to evad using SHA256_PassHash ?? :/
Reply
#4

The better question is: is there no way to avoid using udb_hash? And then the answer is: yes, there is. Honestly, for any new project you should use the latest methods. Udb_hash is as old as SA-MP itself and is, despite its name, not a hashing algorithm.
Reply
#5

Whirpool Hashing is good ? but when i used it i put any random password and proof im logged in :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)