Mini2FA 🔑
安全的本地 TOTP 双因素认证管理工具 — Python 包。
安装
pip install mini2fa
使用
命令行
mini2fa
在真实终端中运行时使用轻量 TUI(备用屏幕整屏重绘):退出后终端不留任何残留, 查看验证码时进度条与剩余秒数每秒自动刷新。非交互环境(管道/脚本/CI)自动降级 为纯文本输出;也可显式禁用:
mini2fa --no-tui
作为库
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)
项目
- GitHub: https://github.com/Duroxi/Mini2FA
- License: MIT
Release files for mini2fa 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mini2fa-0.2.0.tar.gz | 55.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mini2fa-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:93.6 kB
Release files / mini2fa-0.2.0.tar.gz
| Download URL | mini2fa-0.2.0.tar.gz |
|---|---|
| Size | 55.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca2cbb9943be8d90b58afba12d1a0c56bee2ceafd7f307dfc6e2d35dad91f9c9
|
|
BLAKE2b-256 checksum How to use checksums |
3bd2eea31d9bd23898862057becb88f5bcbc8a428e1020f8477e73f26f21081d
|
| 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.2.0-py3-none-any.whl
| Download URL | mini2fa-0.2.0-py3-none-any.whl |
|---|---|
| Size | 38.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92e689d98912bc78df6f34cd8d302c7613de8ee9efadc012cb999a6316491898
|
|
BLAKE2b-256 checksum How to use checksums |
910a2fc40ef35c2c40793d1024dbd1dd7a7768ea7dd3e0f5dc673f5ef3c01e89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.8
|