Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 2.38 KB

README.md

File metadata and controls

49 lines (40 loc) · 2.38 KB

Password Policy Enforcement

A Python script for enforcing strong password policies during user registration and login. This script uses SQLite for data storage and ensures that passwords meet specific criteria for strength.

Features

  • Database: Utilizes SQLite for storing user data.
  • Password Policy: Enforces a minimum password length and requires a mix of uppercase, lowercase, digits, and special characters.
  • User Registration: Allows users to register with a username and a strong password.
  • Login System: Permits secure user logins.
  • Menu Interface: Provides a simple command-line menu.
  • Error Handling: Manages duplicate usernames and errors.

Getting Started

Follow these steps to get started with this project:

  1. Clone the repository: git clone https://github.com/saadali05/Password_policy.git
  2. Navigate to the project directory: cd password-policy-enforcement
  3. Run the script: python password_policy_enforcement.py

Usage

Choose between user registration or login. During registration, strong passwords are required based on the defined password policy. User information is stored in an SQLite database.

Screenshots

Here are some screenshots showcasing the script in action:

Registration Example

Complete Working

Registration Example

Registration Example

Login Example

Login Example

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the project.
  2. Create a new branch for your feature: git checkout -b feature-name
  3. Make your changes and commit them: git commit -m "Add feature"
  4. Push your changes to your fork: git push origin feature-name
  5. Create a pull request on the original repository.