Skip to main content

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


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)

Uploaded Source

Built Distribution

starsol_otp-1.0.0-py3-none-any.whl (5.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