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(key_prefix="user_", key_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)
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.6.tar.gz
(3.1 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.6.tar.gz.
File metadata
- Download URL: tinygenkey-0.1.6.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8f6557116905a6f714ded832c00830717d35f41d504e7f51ca3a21a365e12a6
|
|
| MD5 |
8922d1d540b2849aea51ba1b59ed1bc8
|
|
| BLAKE2b-256 |
e6b647e22cec0059168f4bd336a9d0818c08b6c0501b43b1beda6ea52bd6fd17
|
File details
Details for the file tinygenkey-0.1.6-py3-none-any.whl.
File metadata
- Download URL: tinygenkey-0.1.6-py3-none-any.whl
- Upload date:
- Size: 4.0 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 |
3423d4ad93dd563059392455416d2cc039cc3164c648d4d005308594784fb489
|
|
| MD5 |
ce0fca7ac090e406dec92008f881d563
|
|
| BLAKE2b-256 |
7d993a21fd96ce27a8d3e133edda7e56477efd56ec593cd164395b7f30d56049
|