How to encode inputtext for mysql? - 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: How to encode inputtext for mysql? (
/showthread.php?tid=599451)
How to encode inputtext for mysql? -
Agiss100 - 26.01.2016
Hello,
i have one question.
I haven't touched pawn/mysql in a while, but now i decided to come back and make a server from scratch.
I want to begin with saving playerdata in my database, just a "register/login" system.
The password shouldn't be visible as plain text after entering in the login/register dialog in the DB so i wanted to ask, how to "encode" them?
I would be pleased if you could help me.
I cannot provide any code, since i'm just starting to write it.
Thanks,
agis.
Re: How to encode inputtext for mysql? -
SickAttack - 26.01.2016
It's called hashing.
Use whirlpool (search for it).
Re: How to encode inputtext for mysql? -
Agiss100 - 26.01.2016
Thanks!
Just found it, and it works perfectly.
Re: How to encode inputtext for mysql? -
Vince - 26.01.2016
Just for the sake of it: there is also a native function that you can use (
https://sampwiki.blast.hk/wiki/SHA256_PassHash) which means loading one less plugin.