SA-MP Forums Archive
[help]sha1,MD5 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [help]sha1,MD5 (/showthread.php?tid=656134)



[help]sha1,MD5 - KevinEdward - 08.07.2018

Code:
Код:
stock KeyProtect(const __key[], __output[])
{
	new __tmp_key_hash[SHA1_HASH_LEN];
	md5(__key, __tmp_key_hash);
	sha1(__tmp_key_hash, __output);
	md5(__output, __tmp_key_hash);
	md5(__tmp_key_hash, __output);
	sha1(__output, __tmp_key_hash);
	return md5(__tmp_key_hash, __output);
}
Error:
Код:
error 017: undefined symbol "md5"
error 017: undefined symbol "sha1"
error 017: undefined symbol "md5"
error 017: undefined symbol "md5"
error 017: undefined symbol "sha1"
error 017: undefined symbol "md5"
What is going on?
please.


Re: [help]sha1,MD5 - Florin48 - 08.07.2018

Quote:
Originally Posted by ******
Посмотреть сообщение
It looks like what is going on is you are trying to invent your own very bad encryption system, instead of just using BCrypt. Fortunately, the compiler stopped you.
I use whirlpool hash, is ok.


Re: [help]sha1,MD5 - Florin48 - 08.07.2018

Quote:
Originally Posted by ******
Посмотреть сообщение
No, it isn't (and I posted it).
seriously, I did not know, you can also give me the link where you posted, thanks


Re: [help]sha1,MD5 - KevinEdward - 08.07.2018

Thanks


Re: [help]sha1,MD5 - FakeVilo - 08.07.2018

No one will hack your server, but still Hash the password