This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Crowdy199's profile picture

remember username and password

Started by Crowdy199, 13 June 2013 - 01:21 PM
Crowdy199 #1
Posted 13 June 2013 - 03:21 PM
it so that it remember for Example i am makeing an os and i now how to make a username and password locking system but i am makeing one where they choose the username and password they want inside the program how do i make it so that it remember for Example password = test the problem is when the computer turns off and back on it will not remember that password = test.
Engineer #2
Posted 13 June 2013 - 03:34 PM
It took me a while to read what you actually wanted. Please try to format sentences next time to make yourself more understandable.

You want to save the username and password in a file. On how to do that, you can check this tutorial

However, it is not save to store the password in plain text, use this hashing function to make your OS more secure.
Goof #3
Posted 13 June 2013 - 03:34 PM
just save the configuration into a file, and then load the file on startup :D/>