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.1
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.1.tar.gz | 55.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mini2fa-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:93.5 kB
Release files / mini2fa-0.2.1.tar.gz
| Download URL | mini2fa-0.2.1.tar.gz |
|---|---|
| Size | 55.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f68bbc6c4c9d1cbeec497b23d34b81efdd6ed24de16015ed72e36d708b09a203
|
|
BLAKE2b-256 checksum How to use checksums |
e317187e7c53bdbdff43bd40d596d25693602ac8d039f3e44341c619b276a990
|
| 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.1-py3-none-any.whl
| Download URL | mini2fa-0.2.1-py3-none-any.whl |
|---|---|
| Size | 38.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
684ddc1dee890be1000f84a5fc4d77a96192889fc9c64ba37c77a668a0cf0330
|
|
BLAKE2b-256 checksum How to use checksums |
ed97fbdb8ebed2a5093963da1e627df76febacb2f3efe087392fa5e4fdcf62ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.8
|