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.
Metadata
Release files for keygen 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| keygen-0.1.0.tar.gz | 6.0 kB | Without provenance | Details for keygen-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| keygen-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for keygen-0.1.0-py3-none-any.whl |
Total release size: 11.0 kB
Release files / keygen-0.1.0.tar.gz
| Download URL | keygen-0.1.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b64fa76012d59e73717423115728c04bb6d9ddac0e964e6af3ecb9dcc481c1f
|
|
BLAKE2b-256 checksum How to use checksums |
e37699ddb133a75eaacadd333b091374b068ea4f22c2c871f047050512c17a30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / keygen-0.1.0-py3-none-any.whl
| Download URL | keygen-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26acde3d261151957b8c58d7b899c82d573a79b041fd15c1d0ac94218da1cbae
|
|
BLAKE2b-256 checksum How to use checksums |
4d1f1b32967369deb81781a5fa902981838f3e59b90fe79faab0bed4842cc425
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for keygen 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.