2FA Code Generator (TOTP)
POST /api/v1/tools/2fa-codePaste 2FA secrets (one or many lines, also account|pass|SECRET and otpauth://) to get 6-digit codes that refresh every 30 seconds. Computed in your browser — secrets never leave your device. Free, with API.
Free rate limit: 60 requests/min, 1,000 requests/day, 100 items/request
| Parameters | Type | Description |
|---|---|---|
secrets * | string | string[] | Secrets — One per line (max 100): base32, account|pass|SECRET or otpauth://totp/… |
time | string | Unix time (optional) — Seconds; default = server time |
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
}
]
}
}