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.6.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: python-keygen-1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 4ba14a959b094e2d16d42e6de3a87a65e3cd01b153ce20da5cacf6fd7e56fdce
MD5 14fcedb5a33fedb61fbb380ba6f23902
BLAKE2b-256 aa216e0e82600100b21147fbda211d327e6c92bf46182aa1c44c0b2afb45851e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_keygen-1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2d9bf4e6b2a53d271495293e460a6187c86aeb949bda2409d8cbfea2c666f422
MD5 b85beee3ae7067e33bb26a7080354787
BLAKE2b-256 bb411041134d810c043fe1ebac9d7cad2b2acc714f60c6e3f2199c6e4bcec0bd

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