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)
Built Distribution
Close
Hashes for python_keygen-1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d9bf4e6b2a53d271495293e460a6187c86aeb949bda2409d8cbfea2c666f422 |
|
MD5 | b85beee3ae7067e33bb26a7080354787 |
|
BLAKE2b-256 | bb411041134d810c043fe1ebac9d7cad2b2acc714f60c6e3f2199c6e4bcec0bd |