{"uid":"cap_8gVG1ihOQmMi4O0eb1PY6","slug":"fittings-hash-digest-576cf8b4","name":"fittings Hash Digest","description":"Compute a SHA-1/256/384/512 digest of supplied text, returned as hex and base64.","url":"https://fittings.sh/v1/crypto/hash-digest","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"},"algorithm":{"type":"string","description":"SHA-256 | SHA-384 | SHA-512 | SHA-1"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0035","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0035/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0035","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0035","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_U_DVjLn28xRlsshPZR18i","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0035","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a SHA-1, SHA-256, SHA-384, or SHA-512 cryptographic hash of a supplied text string, returning both hex and base64 encodings.","exampleAgentPrompt":"Can you compute the SHA-256 hash of the text 'Hello, world!' and give me both the hex and base64 versions?","exampleUseCases":[{"title":"Data integrity fingerprinting","prompt":"Hash this JSON payload with SHA-256 so I can store a fingerprint and verify it hasn't been tampered with later: '{\"user\":\"alice\",\"amount\":100}'"},{"title":"Checksum for file content","prompt":"Give me the SHA-512 digest of this text block so I can use it as a checksum — both hex and base64 please: 'v1.0 release notes: fixed login bug, improved performance.'"},{"title":"Comparing hash algorithms","prompt":"Run the text 'supersecret123' through SHA-384 and show me the result in hex so I can compare it against what our system expects."}],"resultDescription":"Returns a JSON object containing the computed hash digest of the input text in both hexadecimal and base64 formats, along with the algorithm used. Both encodings are provided in a single response.","failureModes":["Unsupported algorithm name returns an error — must be exactly SHA-1, SHA-256, SHA-384, or SHA-512","Empty or missing text field returns a validation error","Malformed JSON request body causes a 400-level error","Payment not attached or insufficient USDC balance returns a 402 error"],"whenToPreferThis":"Choose this endpoint when you need a quick, reliable cryptographic hash of a text string without setting up local crypto libraries, or when running in an environment where you want a paid, auditable hashing call. It's ideal for agents needing both hex and base64 output in a single call, or when you want to support multiple SHA variants (1/256/384/512) with a consistent interface.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:13:31.566Z","isFirstParty":false}