Crypto & Security 1 credit COMPUTE

SHA512 Hash API

Generate SHA-512 hashes via REST API. SHA-512 produces a 128-character hex digest and is preferred when longer collision resistance is needed — such as HMAC keys, document fingerprinting, or blockchain-adjacent applications.

Try it live →

How it works

POST your input string to receive the 64-byte SHA-512 digest in lowercase hexadecimal. Uses Node.js built-in crypto — no third-party library, no external network call.

Use cases

API Reference

POST https://slopshop.gg/v1/crypto-hash-sha512
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-sha512"
  },
  "meta": {
    "credits_used": 1,
    "engine": "real",
    "ms": 4
  }
}

Examples

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

Example 1
Document fingerprint
Create a strong fingerprint for a large document before archiving.
curl -X POST https://slopshop.gg/v1/crypto-hash-sha512 \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": "Full text of legal contract..."}'
Example 2
HMAC key derivation
Derive a 512-bit key from a passphrase for use in HMAC operations.
curl -X POST https://slopshop.gg/v1/crypto-hash-sha512 \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": "my-application-secret-passphrase"}'
Example 3
Audit trail entry
Hash a transaction record to create a tamper-evident log entry.
curl -X POST https://slopshop.gg/v1/crypto-hash-sha512 \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": "txn:8821 user:99 action:delete amount:500"}'

Code examples

curl

curl -X POST https://slopshop.gg/v1/crypto-hash-sha512 \
  -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-sha512",
    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-sha512", {
  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-sha512
slop crypto-hash-sha512 '{"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