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.1

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.1
File Size Uploaded
mini2fa-0.1.1.tar.gz 49.2 kB Details

Built distribution (wheel)

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

Total release size:84.2 kB

Release files / mini2fa-0.1.1.tar.gz

Download URL mini2fa-0.1.1.tar.gz
Size 49.2 kB
Tags Source
SHA-256 checksum
How to use checksums
803317c72540bc79075056372afa6f6b7826161636b0fbccc4ddd9f9317dca99
BLAKE2b-256 checksum
How to use checksums
75c546885c3d4a959229b6e6022976c4a627681d0d3e406b2e1102e505323774
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.1-py3-none-any.whl

Download URL mini2fa-0.1.1-py3-none-any.whl
Size 35.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
046ac7100cbc9f36eb2dfb20d9f76ef8cb3c53808fe9ab59664fe7754799058a
BLAKE2b-256 checksum
How to use checksums
df1ef3c200d75cdc32de82177d245d675a6d24b35d9f1369ee7ec400dc2af690
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

This release

0.1.1 This release

2 release files

0.1.0

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