A Python package for password strength checking, strong password generation, and email validation.
Project description
SurakshaMitra
SurakshaMitra 🔐 is your security companion for managing passwords 🔑 and validating email 📨 addresses.
Features ☕
- Check password strength 💪🏻
- Generate strong passwords ♨️
- Validate email addresses 📧
Installation
Install SurakshaMitra using pip:
pip install SurakshaMitra
Usage
1. Check Password Strength
To check the strength of a password, use the check_strength() function:
from SurakshaMitra.password_strength import check_strength
password = "YourPassword123!"
result = check_strength(password)
print(result)
output
This will output the strength of the password as one of the following categories:
-Weak
-Average
-Medium
-Strong
-Very Strong
2. Generate Strong Passwords
To generate a strong password, use the generate_password() function:
from SurakshaMitra.password_generator import generate_password
password = generate_password(length=12) # Specify the length of the password
print("Generated Password:", password)
output
This will generate a random, strong password with a mix of characters, numbers, and special symbols.
3. Validate Email Address
To validate an email address, use the validate_email() function:
from SurakshaMitra.email_validator import validate_email
email = "example@example.com"
is_valid = validate_email(email)
if is_valid:
print(f"{email} is a valid email address.")
else:
print(f"{email} is not a valid email address.")
☕ For any issues or questions, feel free to raise an issue in the GitHub repository.
Explanation:
- Password Strength: This demonstrates how to use the
check_strength()function to evaluate the strength of a password. - Password Generator: Shows how to use the
generate_password()function to create a strong password. - Email Validator: Guides the user to use
validate_email()to check if an email address is formatted correctly.
You can replace the GitHub repository link with your actual repository URL if needed.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file surakshamitra-1.1.0.tar.gz.
File metadata
- Download URL: surakshamitra-1.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa8c5ecab21fa8606331872058d07de4123c1cca7807996257b21a5f5396f9a9
|
|
| MD5 |
bef9ebf304d065d70529c26b344d904b
|
|
| BLAKE2b-256 |
a458caf0ee71701b04d40a2fb6f93bf4a2081c35609bcdaed60d5777c032c1ea
|
File details
Details for the file SurakshaMitra-1.1.0-py3-none-any.whl.
File metadata
- Download URL: SurakshaMitra-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c956063273a9a6db2dc0628ccbbef2ee9cc9f521667e2630825a071054fdc550
|
|
| MD5 |
6bef45dbe856f5711ea8293e35856bfc
|
|
| BLAKE2b-256 |
f26b6e85556818c010913b808b869a6fcdcaf32c12011e9bf319bfe227cede37
|