Security
Generate RFC 6238 TOTP (time-based, 6/8 digits, 30/60s step) and RFC 4226 HOTP (counter-based) one-time passwords from a base32 shared secret, fully offline with HMAC-SHA1/256/512, plus an otpauth:// URI for importing into Google Authenticator / Authy
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/totp-hotp-offline-generator' \
-H 'Content-Type: application/json' \
-d '{"secret":"JBSWY3DPEHPK3PXP","mode":"totp","algorithm":"sha1","digits":6,"period":30,"counter":0,"preview":5,"issuer":"Acme","account":"[email protected]"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/totp-hotp-offline-generator| Name | Type | Required | Description |
|---|---|---|---|
| secret | text | Yes | — |
| mode | select | No | — |
| algorithm | select | No | — |
| digits | select | No | — |
| period | select | No | — |
| counter |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-totp-hotp-offline-generator": {
"name": "totp-hotp-offline-generator",
"description": "Generate RFC 6238 TOTP (time-based, 6/8 digits, 30/60s step) and RFC 4226 HOTP (counter-based) one-time passwords from a base32 shared secret, fully offline with HMAC-SHA1/256/512, plus an otpauth:// URI for importing into Google Authenticator / Authy",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=totp-hotp-offline-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "totp-hotp-offline-generator",
"arguments": {
"secret": "JBSWY3DPEHPK3PXP",
"mode": "totp",
"algorithm": "sha1",
"digits": 6,
"period": 30,
"counter": 0,
"preview": 5,
"issuer": "Acme",
"account": "[email protected]"
}
}
}| number |
| No |
| — |
| preview | number | No | — |
| issuer | text | No | — |
| account | text | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]