SA-MP Forums Archive
Password Hash - 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: Password Hash (/showthread.php?tid=385909)



Password Hash - CrazyChoco - 18.10.2012

Hello, peoples

I was following this tutorial https://sampforum.blast.hk/showthread.php?tid=160971
and i successfully did make it, but the password, how can i hash it as i don't either wanna see their pass, and also make it safe for them?


Re: Password Hash - Roel - 18.10.2012

When you use the tag:
At the INSERT (RegisterPlayer) Query you edit the '%s' from the password to this:
pawn Код:
MD5('%s')
At the SELECT query to login you use this(LoginPlayer):
pawn Код:
Password=MD5('%s')
instead of '%s'


Re: Password Hash - Glint - 18.10.2012

Or you can just use SHA1


Re: Password Hash - Roel - 18.10.2012

Yea doesn't make a big differents.