SA-MP Forums Archive
SHA1 hashed? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SHA1 hashed? (/showthread.php?tid=200979)



SHA1 hashed? - Face9000 - 19.12.2010

Hi all,it's possible to encode with dudb,the player password to SHA1?

If a player register,the password is encoded with SHA1.

Thanks.


Re: SHA1 hashed? - The_Gangstas - 19.12.2010

i don't know what the hell the difference is between sha's md5 etc but try this?

https://sampforum.blast.hk/showthread.php?tid=188734
its sha512 thats the best i can find. S:


Re: SHA1 hashed? - Face9000 - 19.12.2010

http://en.wikipedia.org/wiki/Secure_Hash_Algorithm

http://en.wikipedia.org/wiki/MD5

That plugin work with DUDB/DINI?


Re: SHA1 hashed? - The_Gangstas - 19.12.2010

pawn Код:
new
    buffer[128]
;
SHA512(password, buffer, sizeof(buffer));
dini_set("password",password);

err sorry if that syntax is wrong, i forgot how to use dini S:

Thx to Zamaroht ^^ removed my double post yay


Re: SHA1 hashed? - Face9000 - 20.12.2010

Umh can you explain more please?