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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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