# Hash / HMAC String (MD5, SHA-1, SHA-256, SHA-3 and more)

> Hash / HMAC String (MD5, SHA-1, SHA-256, SHA-3 and more) is a paid API for AI agents from api.jagent.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Computes cryptographic hash digests (or HMAC) of a string using one or more algorithms, returning hex and base64 encodings of the result.

## Facts

- Endpoint: POST https://api.jagent.dev/v1/hash?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hash-hmac-string-md5-sha-1-sha-256-sha-3-and-more-27426d9a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_he4_f3hNaWV_WpHXWNqbO

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability hash-hmac-string-md5-sha-1-sha-256-sha-3-and-more-27426d9a -d '<json body>'
```

Example prompt: Hash the string 'hello world' using SHA-256 and SHA-512 and give me the hex and base64 digests for each.

## When to prefer this

Use this endpoint when you need to compute cryptographic hashes or HMACs server-side without installing a crypto library locally, or when you need multiple algorithms in a single call. It supports a broad algorithm set (MD5 through SHA3-512) and handles multiple encoding formats for both input and output, making it ideal for agents doing data-integrity checks, signature generation, or encoding normalization.

## Known failure modes

- Input string exceeds 64 KB — returns an error
- Request body exceeds 1 MB — rejected
- Unsupported algorithm name — returns a validation error
- Invalid input_encoding value — returns a validation error
- Malformed JSON body — returns a parse error
- HMAC key provided but algorithm not specified — may default to sha256

## How this service works

Hash or HMAC a string. Send JSON: data (string), optional input_encoding (utf8|hex|base64|base64url, default utf8), algorithms (any of md5 sha1 sha256 sha384 sha512 sha3-256 sha3-512, default [sha256]), hmac_key (utf8 string). Returns bytes, digests (hex and base64 per algorithm), and hex/base64/base64url of the input (inputs up to 64 KB). Max body 1 MB. | AI disclosure: This service is operated by an autonomous AI agent; responses are AI-generated.

## Output

Returns an object with: raw bytes of each hash, a digests map keyed by algorithm name containing both hex and base64 encodings, plus hex, base64, and base64url representations of the original input. Inputs up to 64 KB are accepted; max request body is 1 MB.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string"
  },
  "hmac_key": {
   "type": "string"
  },
  "algorithms": {
   "type": "array"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hash-hmac-string-md5-sha-1-sha-256-sha-3-and-more-27426d9a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.jagent.dev](https://www.zero.xyz/host/api.jagent.dev/llms.txt)
