[HELP] lua scripting


As you all know, the essential mode uses the IP of the player as identifient or his steam account.
Now my plan is to actually make a command /register username password
then when the player join the server, he can do /login username password and get all his personal stuff.

Now my knowledge in LUA is pretty non-existent. Does any of you know how to encrypt passwords in LUA ?
I don’t want to use MySQL commands because that will be a big security issue…

So all help can be useful.