Skip to main content

Mini2FA 🔑

安全的本地 TOTP 双因素认证管理工具 — Python 包。

安装

pip install mini2fa

使用

命令行

mini2fa

作为库

from mini2fa import generate_totp, verify_totp

code = generate_totp('JBSWY3DPEHPK3PXP')
print(code)  # 123456

功能

  • 📱 从图片扫码添加 2FA 账号(仅支持 TOTP)
  • 🔑 生成符合 RFC 6238 的 TOTP 验证码
  • 🔐 AES-256-GCM 加密存储(PBKDF2 密钥派生)
  • 📂 分类分组显示 + 关键字搜索
  • 💾 JSON 导入/导出备份(内嵌主密钥,支持跨机器迁移)
  • 🔒 修改主密码、密保提示
  • 🖥️ 跨平台(Windows/Linux/macOS)

项目

Release files for mini2fa 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mini2fa 0.1.0
File Size Uploaded
mini2fa-0.1.0.tar.gz 48.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mini2fa 0.1.0
File Interpreter ABI Platform
mini2fa-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size:83.2 kB

Release files / mini2fa-0.1.0.tar.gz

Download URL mini2fa-0.1.0.tar.gz
Size 48.5 kB
Tags Source
SHA-256 checksum
How to use checksums
da928b75fec3999f23ee958dcb555d251e2e58240f407c57b75d3b4e45ee428b
BLAKE2b-256 checksum
How to use checksums
946278f787231b84de3e41d7c14466bb7c55a42e781b7ed5b1f897e1237889d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.8

Release files / mini2fa-0.1.0-py3-none-any.whl

Download URL mini2fa-0.1.0-py3-none-any.whl
Size 34.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2ed66dcf1b8f736b26bcf22b0620763735a1bd945b8740171ef1046e6396659
BLAKE2b-256 checksum
How to use checksums
1e73b74e7de6ed96a78f52cbbc7440a26930a7aa8b192e9b3da6920fc6d368ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.8

Release history Release notifications | RSS feed

0.2.3

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page