Skip to main content

Key-Generator With Validator Written in Python

Project description

Key Generator

Installation

pip3 install python-keygen

Usage

To Generate Key

from keygen import KeyGen
keygen = KeyGen()
keygen.gen_key(length=20)

To Validate A Key

from keygen import KeyGen
keygen = KeyGen()
key = input("Enter Your Key: ")
is_valid = keygen.validate(key) # return true if key is valid else false
if is_valid:
    print("Valid Key")
else:
    print("Not Valid Key")

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

python-keygen-1.5.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

python_keygen-1.5-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file python-keygen-1.5.tar.gz.

File metadata

  • Download URL: python-keygen-1.5.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5

File hashes

Hashes for python-keygen-1.5.tar.gz
Algorithm Hash digest
SHA256 31f9e0961114a878deb499996edc42a087ca9f45395ad27af362db85a0967c88
MD5 1a6d3aebc35bb09153eb459063cbd82f
BLAKE2b-256 b330a669e4408c9fa1629247cf9abdb5594c62df660f658fa952b94a77b283ca

See more details on using hashes here.

File details

Details for the file python_keygen-1.5-py3-none-any.whl.

File metadata

  • Download URL: python_keygen-1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5

File hashes

Hashes for python_keygen-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b61a403bcaa5a0d927e6b546b0d733e5fafbb8974df1df631b105a0ee8a6cacf
MD5 10f636ef15742c1e301583216dcb4be3
BLAKE2b-256 d0b6edaa4bc33de42e577573700146c48735dbafc4c9ac80d8b6441d487c997f

See more details on using hashes here.

Supported by

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