{"uid":"cap_gq94f1HcqXYUAgze226wq","slug":"hash-encode-text-ff98b217","name":"Hash & Encode Text","description":"Small pay-per-call tools for AI agents. x402, USDC on Base.","url":"https://tools.orchardshop.xyz/t/hash-encode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"string","description":"POST / with raw text as the body"},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["text"],"type":"string"}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"hex":{"type":"string"},"md5":{"type":"string"},"sha1":{"type":"string"},"bytes":{"type":"integer"},"base64":{"type":"string"},"sha256":{"type":"string"},"base64url":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"hex":"68656c6c6f","md5":"5d41402abc4b2a76b9719d911017c592","sha1":"aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d","bytes":5,"base64":"aGVsbG8=","sha256":"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824","base64url":"aGVsbG8"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SpB9cpib7JR25snZ3qXN5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes byte count, SHA-256, SHA-1, MD5, hex, Base64, and Base64URL encodings for a raw text input in a single call","exampleAgentPrompt":"Can you hash and encode the string 'user:abc123@example.com' — I need its SHA-256, MD5, Base64, and byte count all at once?","exampleUseCases":[{"title":"Generate a deterministic content ID","prompt":"Take the string 'invoice-2024-09-17-client42' and give me its SHA-256 hash so I can use it as a stable content identifier."},{"title":"Base64-encode credentials for an API header","prompt":"Encode the string 'myuser:s3cr3tpassword' in Base64 so I can put it into a Basic Auth header."},{"title":"Verify file integrity mid-pipeline","prompt":"I have this config string — 'maxRetries=5,timeout=30,region=us-east-1' — can you compute its MD5 and SHA-256 so I can compare them against the expected checksums?"}],"resultDescription":"A JSON object containing: byte_count (integer), sha256 (hex string), sha1 (hex string), md5 (hex string), hex (hex-encoded string), base64 (standard Base64 string), and base64url (URL-safe Base64 string) — all derived from the submitted raw text body.","failureModes":["Empty body returns zero byte count with hashes of empty string","Extremely large payloads may time out or be rejected","Non-UTF-8 binary data sent as text may produce unexpected hash results","Missing Content-Type or wrong body encoding could alter byte count"],"whenToPreferThis":"Use this endpoint when you need multiple hash and encoding formats computed simultaneously in a single call, avoiding multiple round-trips to separate hashing tools. Ideal for mid-task checksum generation, ID derivation, or encoding values for use in URLs, headers, or integrity checks — especially when you need SHA-256, MD5, Base64, and hex all at once.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:36:38.398Z","isFirstParty":false,"canonicalSlug":"hash-encode-text-ff98b217"}