A tiny, secure key generator.
Project description
TinyGenKey
A tiny, secure, and easy-to-use key generator in Python. Generate cryptographically strong keys for your needs.
Features
- Cryptographically secure keys using
os.urandom - Customizable alphabet, length, prefix, and suffix
- Lightweight and dependency-free
- Type-hinted for modern Python
Installation
pip install tinygenkey
Usage
import tinygenkey as tgk
# Generate a default 42-character key
key = tgk.gen_key()
print(key)
# Generate a key with a prefix and suffix
key2 = tgk.gen_key(prefix="user_", suffix="_end", length=16)
print(key2)
# Use a custom alphabet
custom_alphabet = list("ABC123")
key3 = tgk.gen_key(alphabet=custom_alphabet, length=8)
print(key3)
License
This project is protected by the MIT License.
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
tinygenkey-0.1.8.1.tar.gz
(3.2 kB
view details)
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 tinygenkey-0.1.8.1.tar.gz.
File metadata
- Download URL: tinygenkey-0.1.8.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
984d0d7e40adced2e9cea93b9675742d56dcaa0e8c44dac40e44628754929620
|
|
| MD5 |
21579e0dbc36c281b0f42cc562e1195e
|
|
| BLAKE2b-256 |
7f557937fb6d0a0671791f2d66496273f90c16925c860de4a493f7fb3e49d073
|
File details
Details for the file tinygenkey-0.1.8.1-py3-none-any.whl.
File metadata
- Download URL: tinygenkey-0.1.8.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e9bdf7820c2f4bbb2933b9d56ea26c62215bc524668dbdaa99559ecc58db4f7
|
|
| MD5 |
9c8317f17a6ddb1058b27aebf6866883
|
|
| BLAKE2b-256 |
3d27e715ac3368c4cfd6b1ae426f087fe61364c35545563ddd2ab582938ee92e
|