Main Menu

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?

Erb3

#1
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! 😀
It's not a data breach, it's a surprise backup.