Making an account system

Started by Tauro101, Jun 27, 2022, 03:29 pm

Previous topic - Next topic

Tauro101

could anybody explain how i could make a client that can login and register
and a server that checks and saves it?

PC_Cat

Jun 27, 2022, 07:00 pm #1 Last Edit: Jun 28, 2022, 07:55 pm by PC_Cat
This is not a very easy task, especially when you want it to be safe.
My suggestion is that you could use something like cc-rednet-encrypt to make it encrypt the traffic. This program also discards replay attacks.

I suppose a workflow for registering could look like this:


To hash the password you could use something like sha256.
Even tho the hashing part isent required, it is recommended.
Edit: The workflow above is not really safe. You should instead hash the password client side. Sorry for the confusion.

If you successfully execute this, I have some ideas that you could implement if you want:
- GUI (Example Library: Basalt)
- Salting (Very good video about salting)
- Cross-server (Example Library: Soqet)
But don't worry about these until you are done! 😀
Meow! 😺 | Krist: [email protected] or katpcscili or cats.kst