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)
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.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.tar.gz.
File metadata
- Download URL: tinygenkey-0.1.8.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 |
a07fdbccd45355248d97eadbb12f2be7cda70323b635a2a0c2f99ecf4571a7d4
|
|
| MD5 |
19a7936e9700c4fcfcd6cf02c6f84dd9
|
|
| BLAKE2b-256 |
f5c5d862948832bd806d4f16a49b09dd615b287e987dae8d93cf9506cc9f6fb6
|
File details
Details for the file tinygenkey-0.1.8-py3-none-any.whl.
File metadata
- Download URL: tinygenkey-0.1.8-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 |
45d43dde1d7d483b045a28b1a81352cc5558c02505fb29057c023031fd5e5093
|
|
| MD5 |
12db8befcada9693946bc815065ac89c
|
|
| BLAKE2b-256 |
8eda8ea4751cdd1d27e59849d3b1062d9befa075411e2892edf745954e6e18dd
|