How to encode inputtext for mysql?
#1

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.
Reply
#2

It's called hashing.

Use whirlpool (search for it).
Reply
#3

Thanks!

Just found it, and it works perfectly.
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)