Security
Генерирует одноразовые пароли TOTP RFC 6238 (6/8 цифр, 30/60 с) и HOTP RFC 4226 (по счётчику) из base32-секрета, локально, с HMAC-SHA1/256/512, и формирует otpauth:// URI
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/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]"}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/totp-hotp-offline-generator| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| secret | text | Да | — |
| mode | select | Нет | — |
| algorithm | select | Нет | — |
| digits | select | Нет | — |
| period | select | Нет | — |
| counter |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-totp-hotp-offline-generator": {
"name": "totp-hotp-offline-generator",
"description": "Генерирует одноразовые пароли TOTP RFC 6238 (6/8 цифр, 30/60 с) и HOTP RFC 4226 (по счётчику) из base32-секрета, локально, с HMAC-SHA1/256/512, и формирует otpauth:// URI",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=totp-hotp-offline-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"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 |
| Нет |
| — |
| preview | number | Нет | — |
| issuer | text | Нет | — |
| account | text | Нет | — |
HTML-результат
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Вопросы или проблемы? Свяжитесь с [email protected]