API & MCP
Everything a person can do on RSA/ECC Key Inspector, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://rsaecckeyinspector.usefulweb.site/api/v1/calculate– run RSA/ECC Key InspectorGET https://rsaecckeyinspector.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
RSA/ECC Key Inspector
Paste an RSA, EC (P-256/P-384/P-521, secp256k1, brainpool), Ed25519/Ed448 or X25519 key as PEM, base64/hex DER, JWK or OpenSSH line. Shows key type, size or curve, public exponent, SHA-256 SPKI and OpenSSH fingerprints, the RFC 7638 JWK thumbprint, detects encrypted private keys and their KDF, rates the key against current guidance and converts the PUBLIC key between PEM, JWK and OpenSSH formats.
| Field | Type | Default | Description |
|---|---|---|---|
key (required) | textarea | — | Key (PEM, base64/hex DER, JWK or OpenSSH). Public keys are best. Never paste production private keys into any web tool. With JavaScript on, private keys are converted to their public key before anything is sent. |
showAsn1 | boolean | true | Show the ASN.1 structure of the public key |
Example request
RSA-2048 public key (PEM)
curl -X POST https://rsaecckeyinspector.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"key":"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAh3BIrCB410mLVroKIYbJ\nUPfbt6YGNqOyz/2j7yyi5kOjNVVbFPp02sqjt6i+ZEDvaH5kJIU4P+25V330U0h4\nmXfqN+0yDClu7yxsDLdbVBT7HZHWRuasFoR1ZoZCtlQDg7yP/ubHuWTIVPRHMzRm\n45s7+nUnziEXCDIUhwSxLLTu1Nbo8YfmJEFDKVW+hY8AjlrR6HmNKqjMqiVT+R0U\nVNpB0Y3+koWbPs6WWW0xNpzER2ffGS3IPT0sD++SChsbbZYXJ9gVockGuNifXk1J\n+O/wdXu1FFp9oIua/h2pMwfCYOTci7NZsY4P1dcELAF/+Q/bIz//QMgW+QyGVk9c\nEwIDAQAB\n-----END PUBLIC KEY-----"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://rsaecckeyinspector.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
rsa_ecc_key_inspector - Local stdio connector:
node src/mcp-stdio.ts --tool=rsa-ecc-key-inspector
{
"mcpServers": {
"rsa-ecc-key-inspector": { "type": "http", "url": "https://rsaecckeyinspector.usefulweb.site/mcp" }
}
}