A login and register functionality code which uses SHA algorithm to hash the password.
The functionality exists in the
main.cpp
The steps include:
-
In the first step, code verifies the requirement
- to login or
- to register or
- exit
-
In the second step can be either user registration or user login.
-
Register user details (name, password)
- Password uses SHA algorithm to hash the password.
-
User login using name and password
- If user had registered already, he/she/they can use the login details to login.
-
Then the code outpts whether registration is successful or not, or login is successful or failed.