OTP library
Project description
Usage example
from starsol_otp import TOTP, generate_random_base32_secret
secret = generate_random_base32_secret()
totp = TOTP(secret)
code = totp.generate()
print(code)
print(totp.verify(code))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
starsol_otp-1.0.0.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for starsol_otp-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f53e2b26683fd67b01284e6a855e839031311906ac3a07000c116e4b84bc3651 |
|
MD5 | 5eb79e3948dc3421c283f948dfacc6cd |
|
BLAKE2b-256 | 3d7e4b4198f943b0ef47a35b869ad8a5f177a67df82553b7bb140f724899b9a3 |