[go: up one dir, main page]

Skip to content

This script allows users to register a new account by creating a new JSON file named 'cd.json' or adding new data to an existing one, and logging into the account by providing the correct credentials. The script also encrypts the password before storing it in the JSON file for added security.

Notifications You must be signed in to change notification settings

LpCodes/Basic-Login-Demo-With-Encryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This script allows users to register a new account by creating a new JSON file named 'cd.json' or adding new data to an existing one, and logging into the account by providing the correct credentials. The script also encrypts the password before storing it in the JSON file for added security.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages