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.3.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.3.tar.gz.
File metadata
- Download URL: tinygenkey-0.1.8.3.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 |
667b87afd7e48e02301599d05dbe85b57343f459086ffec2ce770417199cd765
|
|
| MD5 |
7ffd2ee3a90b2f005ced3461e0b708dc
|
|
| BLAKE2b-256 |
461b033fb0502f4a44d3eb8942556f279ac26dd45c4b9a2dbc4b3973c8eee775
|
File details
Details for the file tinygenkey-0.1.8.3-py3-none-any.whl.
File metadata
- Download URL: tinygenkey-0.1.8.3-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 |
5ed13e609ac57e03aed5456a18f4dff2cb14493828837e20b836810de6a51151
|
|
| MD5 |
575cf19447f5534492016d0bbe4de371
|
|
| BLAKE2b-256 |
91a49cbefb89b4ac0d8bf21196697c8696555901751aa0aa38fcdd79e41b08da
|