Skip to main content

A Python module to generate and verify security keys for unique identification

Project description

securitykey

securitykey is a lightweight Python module to generate, store, and verify security keys easily.

Features

  • Generate random security keys with customizable length
  • Store keys in memory during runtime
  • Verify keys against stored keys

Installation

You can install the module via pip (once published):

pip install securitykey
Usage
python
Copy
Edit
import securitykey

# Generate a new key and key ID
keyid, key = securitykey.generateKey()

print(f"Generated Key ID: {keyid}")
print(f"Generated Key: {key}")

# Store the key in memory
securitykey.storeKey(keyid, key)

# Verify the key later
is_valid = securitykey.verifyKey(keyid, key)
print("Key is valid:", is_valid)
Functions
generateKey(keyid="", key="", keyLength=16, idLength=8)
Generates a new key ID and key. You can provide your own or generate random ones.

storeKey(keyid, key)
Stores the key in memory for later verification.

verifyKey(keyid, some_key)
Verifies if the given key matches the stored key ID.

License
MIT License

Made by JTCoder8290

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

securitykey-0.1.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

securitykey-0.1.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file securitykey-0.1.0.tar.gz.

File metadata

  • Download URL: securitykey-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for securitykey-0.1.0.tar.gz
Algorithm Hash digest
SHA256 475605d3742707d08b5f817810d25fa292870b853a626ca3c87eb39e33b1005a
MD5 3d9e26a52678120a5f9885bb641dbd75
BLAKE2b-256 67469221d122078811e9b58b2ae38ace5bd5738beea0c6dc2a429a718dd71bdc

See more details on using hashes here.

File details

Details for the file securitykey-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: securitykey-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for securitykey-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d88ababc0262bab3f0c7aa228cb895883bc2d0271d49bcaab456ddbb4fa53499
MD5 17b733e5494d4dde6529c636dbc2193b
BLAKE2b-256 f038c6ec7ee39665bbb95d34559aaebca9540bab12ae01274ef4d288c9311c47

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