Skip to main content

TOTP 2FA

Project description

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. 用例

  1. github配置方法(pypi需点击HomePage再访问)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

l0n0l2fa-1.0.2.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

l0n0l2fa-1.0.2-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file l0n0l2fa-1.0.2.tar.gz.

File metadata

  • Download URL: l0n0l2fa-1.0.2.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for l0n0l2fa-1.0.2.tar.gz
Algorithm Hash digest
SHA256 4793c6cc83111c55fe9d3e15e9235f6152585452b88a1f95e114af4ff8290773
MD5 1fd03c17422d9bf6063ca8f4f1398aac
BLAKE2b-256 eeba178a62d9411e05254b7856540baaaed2e5eea9f70c7b037beba4c48c73c0

See more details on using hashes here.

File details

Details for the file l0n0l2fa-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: l0n0l2fa-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for l0n0l2fa-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7a234f28238933d9fa917daa1ae7a77026cb0c3d6ffb73bcf9991ec9172fdb18
MD5 573cdb45a6e35ce634bd597a1dc1211f
BLAKE2b-256 fdbfb3270769ca4127934059931fb2fccdfa7b9a6b8d34c203d6b914dca7ec46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page