python-authentiator
TOTP based on python
Homepage: https://github.com/zzzzls/python_authentiator
from python_authentiator import TOTP
g_auth = TOTP(
origin_secret='123456',
label='demo',
account='example@gmail.com'
)
# 生成密钥
secret = g_auth.generate_secret()
# 生成一次性密码
print(g_auth.generate_code(secret))
# 生成二维码
print(g_auth.generate_qrcode(secret))
Release files for python-authentiator 0.55.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 | |
|---|---|---|---|
| python-authentiator-0.55.1.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_authentiator-0.55.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / python-authentiator-0.55.1.tar.gz
| Download URL | python-authentiator-0.55.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f7cecf61d8bb43f1dd692834281532d70a11644a7b902213b466a198194c8f5
|
|
BLAKE2b-256 checksum How to use checksums |
3fb9b930cff7fd3a779e7d1195fb8e8ea7612f3b885c6a14244659b37a2e90ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11
|
Release files / python_authentiator-0.55.1-py3-none-any.whl
| Download URL | python_authentiator-0.55.1-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bced16e5f9d1515755ea63e595145c12e066d17d621f122dd16a3d7b34ffc8b
|
|
BLAKE2b-256 checksum How to use checksums |
58f92cf9dcbac231d82391afa19481fae5b39238f33f281f2949f16860568370
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11
|