API & MCP

Everything a person can do on Password Entropy Race, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Password Entropy Race

Compares passwords and passphrases side by side: naive charset entropy, a pattern-aware estimate that penalises common passwords, keyboard walks, repeats, sequences, dates and l33t speak, and the average time to crack each one at four attacker speeds.

Inputs of Password Entropy Race
FieldTypeDefaultDescription
passwords (required)textarea—Passwords to compare (one per line). Between 2 and 6 lines, up to 128 characters each. Do not paste passwords you really use: use look-alikes with the same structure. Without JavaScript (and via the API/MCP) the text is sent to the server, used for the calculation and not stored.

Example request

Classic password vs passphrase

curl -X POST https://passwordentropyrace.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"passwords":"P@ssw0rd2024\ncorrect horse battery staple\nTr0ub4dor&3"}'

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)

{
  "mcpServers": {
    "password-entropy-race": { "type": "http", "url": "https://passwordentropyrace.usefulweb.site/mcp" }
  }
}