Cryptography
Decodifica clientDataJSON, authenticatorData, flags, rpIdHash e signCount; verifica ES256, RS256 ou Ed25519 quando uma chave pública é fornecida.
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/api/tools/webauthn-passkey-assertion-decoder-challenge-debugger' \
-H 'Content-Type: application/json' \
-d '{"clientDataJson":"{\"type\":\"webauthn.get\",\"challenge\":\"Y2hhbGxlbmdl\",\"origin\":\"https://example.com\"}","clientDataEncoding":"json","authenticatorData":"a379a6f6eeafb9a55e378c118034e2751e682fab9f2d30ab13d2125586ce19478500000002","signature":"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","binaryEncoding":"hex","expectedChallenge":"Y2hhbGxlbmdl","expectedOrigin":"","rpId":"example.com","previousSignCount":1,"cosePublicKey":"","coseEncoding":"base64url"}'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/webauthn-passkey-assertion-decoder-challenge-debugger| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| clientDataJson | textarea | Sim | — |
| clientDataEncoding | select | Não | — |
| authenticatorData | textarea | Sim | — |
| signature | textarea | Sim | — |
| binaryEncoding | select | Não | — |
| expectedChallenge | text | Não | — |
| expectedOrigin | text | Não | — |
| rpId | text | Não | — |
| previousSignCount | number | Não | — |
| cosePublicKey | textarea | Não | — |
| coseEncoding | select | Não | — |
Resultado JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente MCP:
{
"mcpServers": {
"elysiatools-webauthn-passkey-assertion-decoder-challenge-debugger": {
"name": "webauthn-passkey-assertion-decoder-challenge-debugger",
"description": "Decodifica clientDataJSON, authenticatorData, flags, rpIdHash e signCount; verifica ES256, RS256 ou Ed25519 quando uma chave pública é fornecida.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=webauthn-passkey-assertion-decoder-challenge-debugger",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "webauthn-passkey-assertion-decoder-challenge-debugger",
"arguments": {
"clientDataJson": "{\"type\":\"webauthn.get\",\"challenge\":\"Y2hhbGxlbmdl\",\"origin\":\"https://example.com\"}",
"clientDataEncoding": "json",
"authenticatorData": "a379a6f6eeafb9a55e378c118034e2751e682fab9f2d30ab13d2125586ce19478500000002",
"signature": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"binaryEncoding": "hex",
"expectedChallenge": "Y2hhbGxlbmdl",
"expectedOrigin": "",
"rpId": "example.com",
"previousSignCount": 1,
"cosePublicKey": "",
"coseEncoding": "base64url"
}
}
}Dúvidas ou problemas? Contate [email protected]