Small Basic Forum
Challenge 1 - TextWindow login - Printable Version

+- Small Basic Forum (https://litdev.uk/mybb)
+-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1)
+--- Forum: Challenges (https://litdev.uk/mybb/forumdisplay.php?fid=5)
+--- Thread: Challenge 1 - TextWindow login (/showthread.php?tid=5)



Challenge 1 - TextWindow login - litdev - 09-04-2023

Write a TextWindow login program.

It should have options to:
  • create and account and set a password
  • login using existing account and password (checking the password)

To extend the program you could:
  • have a reset password option
  • save the passwords so that the program can be rerun
  • consider how to 'encrypt' the passwords
  • write a GraphicsWindow version



RE: Challenge 1 - litdev - 09-18-2023

Here is a starting answer, import TSSN477.000

This should be imported into Small Basic using the code above.  It contains File commands that are automatically commented out for security reasons.  You should check you are happy they don't do anything bad by looking at the code, then when happy uncomment them.  I recommend saving the program somewhere before running it, since it saves passwords to a settings file in the same folder as the program is saved (hence the File commands).

Run the program, check out how it works, what isn't so good and make it better!