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.1.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file starsol_otp-1.0.1.tar.gz.
File metadata
- Download URL: starsol_otp-1.0.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14d3fdfcbeb57eb9b4ee859ccc02aed592bd91478b0e788428b775e965069107
|
|
| MD5 |
f2d16bdfabbf7bdbab2e45d83e9efc81
|
|
| BLAKE2b-256 |
357538489529776c4d9c5317e00b1a0a0e97f51ac94d79b9f82d7d6163b647a7
|
File details
Details for the file starsol_otp-1.0.1-py3-none-any.whl.
File metadata
- Download URL: starsol_otp-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
490f94b7ad8a83434fe585102fb16dbbab054662cd454b5e1d415805fede2e81
|
|
| MD5 |
329108843e4741203e8f5e55872a0fb6
|
|
| BLAKE2b-256 |
751e4a8278314aced10796bf0ebcf77824fb6b7d937ec376e545b9cc1cbf4282
|