Crypto & Security 1 credit COMPUTE

AES Decrypt API

Decrypt AES-256-GCM ciphertext via REST API. Verifies the authentication tag before decryption — if the ciphertext has been tampered with, the API returns an error rather than silently returning corrupted data.

Try it live →

How it works

POST the key, IV, ciphertext, and authentication tag (all as hex). The API verifies the GCM auth tag first (preventing padding oracle attacks), then decrypts and returns the original plaintext.

Use cases

API Reference

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

Examples

Three real-world scenarios showing how developers use AES Decrypt in production.

Example 1
Decrypt stored API key
Retrieve and decrypt an API key that was stored encrypted in the database.
curl -X POST https://slopshop.gg/v1/crypto-decrypt-aes \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key": "0000000000000000000000000000000000000000000000000000000000000001", "iv": "aabbccddeeff0011", "ciphertext": "...", "tag": "..."}'
Example 2
Decrypt PII for processing
Temporarily decrypt an encrypted SSN field for a compliance report.
curl -X POST https://slopshop.gg/v1/crypto-decrypt-aes \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key": "deadbeef...", "iv": "112233445566", "ciphertext": "...", "tag": "..."}'
Example 3
Decrypt config at startup
Decrypt an encrypted config value when the application boots.
curl -X POST https://slopshop.gg/v1/crypto-decrypt-aes \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key": "cafebabe...", "iv": "ffeeddccbbaa", "ciphertext": "...", "tag": "..."}'

Code examples

curl

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