2FA 验证码生成器(TOTP)
POST /api/v1/tools/2fa-code粘贴 2FA 密钥(一行或多行,也支持 账号|密码|SECRET 和 otpauth://),获取每 30 秒自动刷新的 6 位验证码。在您的浏览器中计算——密钥不会离开您的设备。免费,提供 API。
免费速率限制: 60 请求/分钟, 1,000 请求/天, 100 项/请求
| 参数 | 类型 | 描述 |
|---|---|---|
secrets * | string | string[] | 2FA 密钥 — 每行一个(最多 100 行):base32、账号|密码|SECRET 或 otpauth://totp/… |
time | string | Unix 时间(可选) — 单位为秒;留空 = 服务器时间 |
curl -X POST 'https://sieutool.net/api/v1/tools/2fa-code' \
-H 'Content-Type: application/json' \
-H "X-API-Key: $NXP_API_KEY" \
-d '{"secrets":"JBSWY3DPEHPK3PXP\[email protected]|matkhau|GEZD GNBV GY3T QOJQ","time":1700000000}'{
"ok": true,
"tool": "2fa-code",
"version": "1.0.0",
"data": {
"time": 1700000000,
"items": [
{
"line": 1,
"ok": true,
"label": "JBSW…3PXP",
"issuer": null,
"code": "324550",
"next_code": "367665",
"digits": 6,
"period": 30,
"algorithm": "SHA1",
"remaining_s": 10
},
{
"line": 2,
"ok": true,
"label": "[email protected]",
"issuer": null,
"code": "017492",
"next_code": "907147",
"digits": 6,
"period": 30,
"algorithm": "SHA1",
"remaining_s": 10
}
]
}
}