1. 介绍
TOTP 2FA动态密码服务器
2. 安装
pip install l0n0l2fa
3. 配置文件介绍(tokens_otp.json)
[
{
"token": "token", // 自定义, 唯一访问凭证
"user": "动态密码", // 用户名
"secrets": [
{
"name": "user1", // 密码的标签, 自定义
"secret": "user1密码" // 密码, 由需要2fa的服务提供(github, pypi ...)
},
{
"name": "user2", // 密码的标签, 自定义
"secret": "user2密码" // 密码, 由需要2fa的服务提供(github, pypi ...)
}
]
}
]
4. 命令介绍
l0n0l2fa -h
usage: l0n0l2fa [-h] [--host HOST] [--port PORT] [--certfile CERTFILE] [--keyfile KEYFILE] [--tokens TOKENS]
OTP 管理服务
options:
-h, --help show this help message and exit
--host HOST 监听地址 (默认: 127.0.0.1)
--port PORT 监听端口 (默认: 8080)
--certfile CERTFILE SSL 证书文件路径 (可选)
--keyfile KEYFILE SSL 私钥文件路径 (可选)
--tokens TOKENS Token 配置文件路径 (默认: tokens_otp.json)
5. 用例
Metadata
Release files for l0n0l2fa 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| l0n0l2fa-2.0.2.tar.gz | 6.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| l0n0l2fa-2.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.6 kB
Release files / l0n0l2fa-2.0.2.tar.gz
| Download URL | l0n0l2fa-2.0.2.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecc1e908e216ff2ed01109aa710462c0813734bde4575d99fcc078d685e1b117
|
|
BLAKE2b-256 checksum How to use checksums |
164d3b51a3a076cb0738a3b2f3fa45bbcacbdb553a4b3ba512a85ef871030158
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / l0n0l2fa-2.0.2-py3-none-any.whl
| Download URL | l0n0l2fa-2.0.2-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b9d1e4bfb05d3c24cd7bf65daa87f7910bd3b022d0fe8e75b51875656febb23
|
|
BLAKE2b-256 checksum How to use checksums |
4d00a3d958edf2db3e2d082feba0cb69771c891814f833b545a9b7356aa2ba1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for l0n0l2fa 2.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.