Skip to main content

PyPI version

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 --unsafe flag.
    • Removed potentially problematic symbols from the default generation.
  • 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)

Source distribution for keygen 0.1.0
File Size Uploaded
keygen-0.1.0.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for keygen 0.1.0
File Interpreter ABI Platform
keygen-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page