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.3.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for python_keygen-1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8af0b264c9bf9881a9c405b54308dc856c868954150e5ab4ffc423ec9378094 |
|
MD5 | 7441ab184f2344568251a8cb7f52adfc |
|
BLAKE2b-256 | f8580a38d0fec101733946f0dd25b0ae9d279a429d1a7a19be727bfea7e6db71 |