REST API

API Documentation

Base URL: https://your-domain/api. Send JSON except for file hashing. Rate limits apply; request bodies are never logged.

POST /api/hash

Generate a digest or password hash.

Request

{ "input": "hello", "algorithm": "sha256", "encoding": "hex" }

Response

{ "hash": "2cf24d…", "length": 64, "processingTimeMs": 1 }

POST /api/verify

Verify a supplied input against an existing hash.

Request

{ "input": "hello", "hash": "2cf24d…", "algorithm": "sha256" }

Response

{ "match": true, "processingTimeMs": 1 }

POST /api/filehash

Multipart upload; file stays in memory and is discarded.

Request

file=<binary>, algorithms=sha256,sha512

Response

{ "name": "report.pdf", "hashes": { "sha256": "…" } }

POST /api/hmac

Create a message authentication code.

Request

{ "message": "hello", "key": "secret", "algorithm": "sha256" }

Response

{ "hmac": "…", "algorithm": "sha256" }

POST /api/identify

Return likely hash formats.

Request

{ "hash": "$2b$12$…" }

Response

{ "length": 60, "matches": [{ "algorithm": "bcrypt", "confidence": 100 }] }