TOTP based on python
Project description
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))
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
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 python-authentiator-0.55.1.tar.gz.
File metadata
- Download URL: python-authentiator-0.55.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f7cecf61d8bb43f1dd692834281532d70a11644a7b902213b466a198194c8f5
|
|
| MD5 |
2c3394766ce788f624c6fa269b4e3223
|
|
| BLAKE2b-256 |
3fb9b930cff7fd3a779e7d1195fb8e8ea7612f3b885c6a14244659b37a2e90ab
|
File details
Details for the file python_authentiator-0.55.1-py3-none-any.whl.
File metadata
- Download URL: python_authentiator-0.55.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bced16e5f9d1515755ea63e595145c12e066d17d621f122dd16a3d7b34ffc8b
|
|
| MD5 |
e410c03e9ffc9df3d1a572032b1b90a9
|
|
| BLAKE2b-256 |
58f92cf9dcbac231d82391afa19481fae5b39238f33f281f2949f16860568370
|