A secure and powerful password generation and management utility
Project description
CrypticGen 🔐
CrypticGen is a powerful, secure and customisable password generation and management utility for Python.
Features
- Generate strong, cryptographically secure passwords
- Customize character sets (uppercase, lowercase, digits, symbols)
- Inclsion & Exclusion of characters
- Default exclusion of confusing characters (customizable)
- Evaluate password strength
- Generate URL-safe tokens
- Output SHA-256 hashed passwords
- Store and retrieve generated passwords
- Command-line interface for easy use
- Encrypt & Decrypt the password
- Check for password breach through k-Anonymity method (HIBP)
Installation
pip install crypticgen
Command Line Usage
Basic Usage
# Generate a default 04-character password
crypticgen
# Generate a 16-character password
crypticgen --length 16
Character Set Options
# No symbols
crypticgen --no-symbols
# Excxludes lowercase & symbols from password
crypticgen --no-lowercase --no-symbols
# Exclude specified characters
crypticgen --exclude "0O1Il"
# Add custom characters
crypticgen --custom "!@#$%"
Multiple Passwords
# Generate 5 passwords
crypticgen --number 5
Output Formats
# Generate hashed password (SHA-256)
crypticgen --hash
# Generate URL-safe token
crypticgen --url-safe
# Don't show password strength
crypticgen --no-strength
Managing Stored Passwords
# List all stored passwords
crypticgen --list
# Delete a password by ID
crypticgen --delete 3
Python API Usage
from crypticgen import CrypticGen
# Create a PassKey instance
pk = CrypticGen(
length=16,
include_uppercase=True, # includes uppercase characters if True
include_lowercase=True, # includes lowercase characters if True
include_digits=True, # includes digits if True
include_symbols=True, # includes symbols if True
exclude_char="0O1Il", # Exclude specified characters if mentioned
custom_chars="", # Add custom characters if mentioned
hash_format=False, # Output SHA-256 hash if True
url_safe=False, # Generate URL-safe token if True
default_exclude = r"[\\,\'\"\.`1I|]" # excludes confusing characters by default. Can be customisable
)
# Generate a password
password = pk.generate()
print(f"Generated password: {password}")
# Check password strength
strength = pk.password_strength(password)
print(f"Password strength: {strength}")
# Generate multiple passwords
multiple_passwords = pk.bulk_generate(5)
print(multiple_passwords)
# Verify a password
if pk.verify(password):
print("Password verified!")
# Password Breach Checker through HIBP API
check = pk.password_breach(password)
print(check)
## 🔑 Password Breach Check (Have I Been Pwned Integration) ##
crypticgen uses the official [Have I Been Pwned](https://haveibeenpwned.com/) API (https://api.pwnedpasswords.com/range/{first 5 hash chars}) to safely and securely check if a password has appeared in known data breaches.
This feature uses the [k-Anonymity model](https://en.wikipedia.org/wiki/K-anonymity), meaning your full password or full hash is **never sent over the internet**, ensuring maximum privacy and safety.
> Data provided by Have I Been Pwned (https://haveibeenpwned.com/), a service by Troy Hunt.
# Password encryption & decryption
encrypted = pk.encryption(password)
print(encrypted)
decrypted = pk.decrypted(encrypted)
print(decrypted)
License
MIT License
Copyright (c) [2025] [Kushal V]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Release history Release notifications | RSS feed
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 crypticgen-0.1.0.tar.gz.
File metadata
- Download URL: crypticgen-0.1.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f400d3ae49b4c6d2111d693d9f49204442a287bc4b525003b9e3f1ecc81ffab
|
|
| MD5 |
32c7e39d8d4d2fa277c5fe9616fcd70b
|
|
| BLAKE2b-256 |
c5dfd8bde0573ffbaee8f3d69dc0475ceb9936d299bb059c6e6c17b3e7d3f826
|
File details
Details for the file crypticgen-0.1.0-py3-none-any.whl.
File metadata
- Download URL: crypticgen-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c22ff05d41eec5da2bdd6dc6f1aafecf4dc096ecb9d5ca02e2d2e86ea2d4f2be
|
|
| MD5 |
2e0e9b1931571c943ed962207a93f1d3
|
|
| BLAKE2b-256 |
bb72bf212c893b67e5bd53504ea9ddaf6eb4a8c07097c9b01bfb84569f2bd9c5
|