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.
- 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.
Follow these steps to get started with this project:
- Clone the repository:
git clone https://github.com/saadali05/Password_policy.git
- Navigate to the project directory:
cd password-policy-enforcement
- Run the script:
python password_policy_enforcement.py
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.
Here are some screenshots showcasing the script in action:
Complete Working
Registration Example
Login Example
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the project.
- Create a new branch for your feature:
git checkout -b feature-name
- Make your changes and commit them:
git commit -m "Add feature"
- Push your changes to your fork:
git push origin feature-name
- Create a pull request on the original repository.