Endpoint
Authentication
| Header | Required | Value |
|---|---|---|
X-API-Key | Yes | Your API key (bun_...) |
Content-Type | Yes | application/json |
Overview
Compute cryptographic hash digests for any input string using one or more algorithms in a single request. The response returns hex-encoded digests keyed by algorithm name, making it easy to compare or store multiple hashes simultaneously without running separate requests.Use cases
- Verify file or payload integrity using checksum comparison
- Migrate legacy password hashes during authentication system upgrades
- Generate consistent fingerprints for deduplication pipelines
- Produce content-addressable identifiers for caching layers
Request body
| Field | Type | Required | Description |
|---|---|---|---|
input | string | Yes | The string to hash |
algorithms | array of strings | No | Algorithms to compute. Defaults to all. Options: md5, sha1, sha256, sha384, sha512, sha512-256 |
Example
Response
200 OK
| Field | Type | Description |
|---|---|---|
input | string | The original input string |
hashes | object | Map of algorithm name to hex-encoded digest |

