Posts: 413
Threads: 59
Joined: Sep 2013
Код:
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass]);
{
Код:
C:\Users\\Desktop\SAMP\filterscripts\PayPal.pwn(174) : error 017: undefined symbol "PlayerInfo"
C:\Users\\Desktop\SAMP\filterscripts\PayPal.pwn(174) : warning 215: expression has no effect
C:\Users\\Desktop\SAMP\filterscripts\PayPal.pwn(174) : error 001: expected token: ";", but found "]"
C:\Users\\Desktop\SAMP\filterscripts\PayPal.pwn(174) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\SAMP\filterscripts\PayPal.pwn(174) : fatal error 107: too many error messages on one line
Posts: 566
Threads: 14
Joined: Jun 2010
Reputation:
0
first, remove the semicolon,
second, use strcmp when comparing between two strings
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
The udb_hash function only generates numbers, so using the comparison operator is valid. Though this code is incredibly insecure. This kind of "hash" can be cracked in mere seconds. Adler32 (which is wat udb_hash is) is a checksum algorithm rather than a hashing algorithm.
Posts: 413
Threads: 59
Joined: Sep 2013
Quote:
Originally Posted by Vince
The udb_hash function only generates numbers, so using the comparison operator is valid. Though this code is incredibly insecure. This kind of "hash" can be cracked in mere seconds. Adler32 (which is wat udb_hash is) is a checksum algorithm rather than a hashing algorithm.
|
Umm...Just tell me how to fix it.
Posts: 451
Threads: 31
Joined: May 2012
Reputation:
0
Not really fitting with the question but if you want security use Whirlpool, it's more secure.