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.0.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for python_keygen-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7171e718ed900104a949cdc7bb70ee32e24ffef036d6559fde2d2bb945499e6 |
|
MD5 | 2b585d460b92eaf4cd4feb4a547fe5f2 |
|
BLAKE2b-256 | f158f2c3d3a7c489b156db5df55162a752c9433d699ece0036934981f7a8e5f1 |