Crypto & Security 1 credit COMPUTE

MD5 Hash API

Generate MD5 checksums via REST API. While MD5 is not cryptographically secure for password hashing, it remains the standard for non-security checksums: file integrity checks, etag generation, and cache key generation where speed matters more than collision resistance.

Try it live →

How it works

POST any string and receive its 32-character MD5 hex digest. Fast and deterministic. For password hashing, use the crypto-password-hash API which uses PBKDF2 with a random salt.

Use cases

API Reference

POST https://slopshop.gg/v1/crypto-hash-md5
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Input parameters

ParameterTypeRequiredDescription
input / data string required The input data to hash or process

Example response

{
  "data": {
    "result": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "algorithm": "hash-md5"
  },
  "meta": {
    "credits_used": 1,
    "engine": "real",
    "ms": 4
  }
}

Examples

Three real-world scenarios showing how developers use MD5 Hash in production.

Example 1
Generate ETag
Create an HTTP ETag header value from response content.
curl -X POST https://slopshop.gg/v1/crypto-hash-md5 \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": "Hello World"}'
Example 2
Legacy system checksum
Compute an MD5 checksum to match a third-party system requirement.
curl -X POST https://slopshop.gg/v1/crypto-hash-md5 \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": "order_id=12345&amount=99.99¤cy=USD"}'
Example 3
Deduplication key
Generate a fast dedup key for a batch of records.
curl -X POST https://slopshop.gg/v1/crypto-hash-md5 \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": "john.doe@example.com|2024-01-15|purchase"}'

Code examples

curl

curl -X POST https://slopshop.gg/v1/crypto-hash-md5 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input": "your data here"}'

Python

import requests

response = requests.post(
    "https://slopshop.gg/v1/crypto-hash-md5",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"input": "your data here"}
)
result = response.json()
print(result["data"])

Node.js

const response = await fetch("https://slopshop.gg/v1/crypto-hash-md5", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ input: "your data here" })
});
const { data } = await response.json();
console.log(data);

CLI

# Install the Slopshop CLI
npm install -g slopshop

# Set your API key
export SLOPSHOP_KEY=your_api_key

# Call crypto-hash-md5
slop crypto-hash-md5 '{"input": "your data here"}'

Pricing

Credits per call
1
credits
Cost per call
$0.001
at Starter tier
Tier
COMPUTE
Pure compute

Credits are purchased in bundles starting at $1 for 1,000 credits. All compute APIs like this one use 1 credit per call — that's $0.001. See all pricing tiers.

Related APIs in Crypto & Security

View the full API catalog · Try in playground · Documentation