How to encode, decode & hash in code
Run any supported operation against the API. Examples in curl, JavaScript, and Python.
curl
curl "https://encode.wrapper-agency.com/api/v1/encode?op=base64-encode&value=Hello"JavaScript (fetch)
const res = await fetch(
"https://encode.wrapper-agency.com/api/v1/encode?op=sha256&value=" + encodeURIComponent("Hello")
);
const { output } = await res.json();
console.log(output); // 185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969Python (requests)
import requests
r = requests.get(
"https://encode.wrapper-agency.com/api/v1/encode",
params={"op": "url-encode", "value": "name=John Doe"},
)
print(r.json()["output"]) # name%3DJohn%20DoeBatch many ops at once
curl -X POST "https://encode.wrapper-agency.com/api/v1/pro/encode" \
-H "Content-Type: application/json" \
-d '{"items":[{"op":"md5","value":"a"},{"op":"sha256","value":"b"}]}'The batch endpoint is paid per call (USDC on Base via x402) and returns one result object per input item.
Notes
Hashes (MD5, SHA-1/256/512) are one-way checksums for integrity and fingerprinting. JWT decode reads the header and payload only — it does not verify the signature. Treat both as client utilities, not security guarantees, and never use a bare hash as a password store.
See the full API reference.