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))
Metadata
Release files for starsol-otp 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| starsol_otp-1.0.1.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| starsol_otp-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 kB
Release files / starsol_otp-1.0.1.tar.gz
| Download URL | starsol_otp-1.0.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14d3fdfcbeb57eb9b4ee859ccc02aed592bd91478b0e788428b775e965069107
|
|
BLAKE2b-256 checksum How to use checksums |
357538489529776c4d9c5317e00b1a0a0e97f51ac94d79b9f82d7d6163b647a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / starsol_otp-1.0.1-py3-none-any.whl
| Download URL | starsol_otp-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
490f94b7ad8a83434fe585102fb16dbbab054662cd454b5e1d415805fede2e81
|
|
BLAKE2b-256 checksum How to use checksums |
751e4a8278314aced10796bf0ebcf77824fb6b7d937ec376e545b9cc1cbf4282
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|