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.2.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.2.tar.gz.
File metadata
- Download URL: tinygenkey-0.1.8.2.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 |
7cbd15b018ccf93351b9565b7f9d676887f13afceb7b859fc45b456b10e68f55
|
|
| MD5 |
3c46a803ef478e27270b65ee44ba90a8
|
|
| BLAKE2b-256 |
e6b41c843f3112377aaf15e969e3e209935ff620bf1148a5e8e445b0320747d6
|
File details
Details for the file tinygenkey-0.1.8.2-py3-none-any.whl.
File metadata
- Download URL: tinygenkey-0.1.8.2-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 |
d2e76b3c7938a58d276c3d93b04a6f1a7d51500c11ccea37c2166893f3df8a11
|
|
| MD5 |
a54418a1b97eac8372cdc31e91ffcad8
|
|
| BLAKE2b-256 |
35e1b4dd750d0f837d1b9afb436db2b31b42154b4b3d94a4ec003ec55ef8dbd6
|