Keygen for generate keys :)
Project description
keygen v0.1.0
A tiny, dependency-free CLI for generating strong keys, tokens, and password-like strings with flexible symbol sets.
Installation
> pip install keygen
Build
> python -m build
Command line parameters
> keygen [-s SYMBOLS] [-l LENGTH] [-v]
-s, --symbols # Character set for generation:
u - ASCII uppercase letters
l - ASCII lowercase letters
d - digits
p - punctuation symbols
h - HEX digits
o - OCT digits
b - BIN digits
Default: uldp
-l, --length # Generated key length
Default: 32
-e, --emulate # Emulate encryption algorithm output
Supported algorithms:
md5, sha1, sha224, sha256, sha384, sha512, uuid
Default: None
--unsafe # Allow potentially problematic symbols (including ;, ", ', \\, `, $)
Default: False (safe mode enabled)
Usage
# Generate a 32-character key
> keygen
# Generate a 64-character key using HEX symbols
> keygen -s h -l 64
# Generate a 128-character key using all available symbols
> keygen -s uldp -l 128
# Generate a key that looks like UUID
> keygen -e uuid
# Generate a key with unsafe symbols
> keygen --unsafe
Changelog
-
v0.1.0 [25.02.2026]
- Added safe mode by default and
--unsafeflag. - Removed potentially problematic symbols from the default generation.
- Added safe mode by default and
-
v0.0.3 [27.05.2020]
- Random algorithm switched to system one.
- Added ability to generate keys that look like crypto function outputs.
- Removed extra output mode.
-
v0.0.2 [22.03.2018]
- Added input parameter validation.
-
v0.0.1 [20.03.2018]
- Initial release.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
keygen-0.1.0.tar.gz
(6.0 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 keygen-0.1.0.tar.gz.
File metadata
- Download URL: keygen-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b64fa76012d59e73717423115728c04bb6d9ddac0e964e6af3ecb9dcc481c1f
|
|
| MD5 |
f260855363cd12d1a898ce4ff29a6c53
|
|
| BLAKE2b-256 |
e37699ddb133a75eaacadd333b091374b068ea4f22c2c871f047050512c17a30
|
File details
Details for the file keygen-0.1.0-py3-none-any.whl.
File metadata
- Download URL: keygen-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26acde3d261151957b8c58d7b899c82d573a79b041fd15c1d0ac94218da1cbae
|
|
| MD5 |
f7e7818122fd16ee4a4604be98ed795e
|
|
| BLAKE2b-256 |
4d1f1b32967369deb81781a5fa902981838f3e59b90fe79faab0bed4842cc425
|