Skip to main content

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)

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

tinygenkey-0.1.7.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tinygenkey-0.1.7-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file tinygenkey-0.1.7.tar.gz.

File metadata

  • Download URL: tinygenkey-0.1.7.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for tinygenkey-0.1.7.tar.gz
Algorithm Hash digest
SHA256 a9057444afebb39f360fdb19d94e848cbb495b2a9febf680b337bb55f669a8ef
MD5 930f2de58f73ee723a292702f74ee313
BLAKE2b-256 9fe45a38433078bdddb175fb716ac4bf21fb1ea328b551154533c1d4a266aca9

See more details on using hashes here.

File details

Details for the file tinygenkey-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: tinygenkey-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for tinygenkey-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c73721b002489c823c972d6cb866e9bc326692e0b2b2e0ad24eaf7b1d9f3ca9f
MD5 2672157f1b5319411e63999c535d38b5
BLAKE2b-256 7b9ad2d38b7045ed73deb4703d490b9337e81d4a049d3de8f41419c2dcc5e1d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page