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 details)

Uploaded Source

Built Distribution

starsol_otp-1.0.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file starsol_otp-1.0.0.tar.gz.

File metadata

  • Download URL: starsol_otp-1.0.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for starsol_otp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f2933c847c9c48f7bb39bcd21ff97b8ee64bf77cf4e3315e78bfe6dd2a1ce919
MD5 5dbadea82e067d4fae4428e93ab0f7be
BLAKE2b-256 27e305c147a76ffcfb94d39878cfe0b902a6487c20bf3ea21f1a95ce0b87363c

See more details on using hashes here.

File details

Details for the file starsol_otp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: starsol_otp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for starsol_otp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f53e2b26683fd67b01284e6a855e839031311906ac3a07000c116e4b84bc3651
MD5 5eb79e3948dc3421c283f948dfacc6cd
BLAKE2b-256 3d7e4b4198f943b0ef47a35b869ad8a5f177a67df82553b7bb140f724899b9a3

See more details on using hashes here.

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