This tutorial takes a look how authentication works within an application, particularly how passwords are secured in an encrypted manner. This example uses a home built system so that you can see the mechanisms used to securely store passwords.
Download source code and art work
(you will need to provide an email address)
What we will do is create a simple login form to supply a username and password with OK and Cancel buttons to submit the form.
Where the username and password match we will open up the application and where it fails we will provide an error message and allow the user to try again. The Cancel button allows the user abandon their attempt to authenticate with the application and to exit the program.
We will make use of a simple database table to store login information and use hashing to secure the passwords within the database.