Skip to content

Latest commit

 

History

History
36 lines (19 loc) · 1.18 KB

File metadata and controls

36 lines (19 loc) · 1.18 KB

Basic Login Demo With Encryption Offline Storage without database

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.

Features

  • 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.

Prerequisites

  • Python 3.x
  • Additional package: cryptocode (You can install it using pip install cryptocode)

Usage

  1. Clone the repository or download the Python script (Simpleloginmanager.py) to your local machine.

  2. Open a terminal or command prompt and navigate to the directory containing the script.

  3. Run the script using the following command:

  4. Follow the on-screen instructions to perform user registration and login.

Configuration

  • 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.