This is a simple user authentication system implemented in Python. It allows users to register with a unique username and password, which are then stored securely in a JSON file. Users can then log in using their credentials.
- User registration with a unique username and password.
- Passwords are securely encrypted before storage.
- User data is stored in a JSON file.
- User authentication during login.
- Python 3.x
- Additional package:
cryptocode
(You can install it usingpip install cryptocode
)
-
Clone the repository or download the Python script (
Simpleloginmanager.py
) to your local machine. -
Open a terminal or command prompt and navigate to the directory containing the script.
-
Run the script using the following command:
-
Follow the on-screen instructions to perform user registration and login.
-
You can modify the following constants in the script to customize its behavior:
-
DATA_FILE
: The name of the JSON data file where user data is stored. -
ENCRYPTION_KEY
: The encryption key used to securely store and retrieve passwords.