{"uid":"cap_B2WZ8KTJh3DCIly3RBxXf","slug":"irantools-shannon-entropy-calculator-5af0f769","name":"IranTools Shannon Entropy Calculator","description":"Persian and Iranian utilities for AI agents, plus general text/Unicode tooling. Jalali (Solar Hijri) calendar conversion, Iranian national ID / SHEBA / bank card / postal code / economic code validation, province and city lookup, official public holidays, Persian text normalization, keyword extraction, sentence splitting, similarity, HTML stripping, RTL fixing, Unicode homoglyph folding, script detection, NFC/NFD normalization, grapheme counting, date description, business-day counting, slugify, FNV-1a hashing, Shannon entropy, format and encoding detection, byte sizes. Pay per call in USDC on Base via x402 - no signup, no API key, no KYC. The same tools are also exposed as MCP tools at /mcp.","url":"https://irantools.johnaio281.workers.dev/api/iran/entropy?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IhBIvDR4Wwc6mc9DP1vlJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes Shannon entropy of a given text string, measuring its information density and randomness","exampleAgentPrompt":"What's the Shannon entropy of the string 'P@ssw0rd123!#' — I want to know how random and information-dense it is?","exampleUseCases":[{"title":"Password strength entropy check","prompt":"Calculate the Shannon entropy of 'Tr0ub4dor&3' — I need to know if it's sufficiently random for use as a system password."},{"title":"Detecting encrypted or compressed data","prompt":"Can you check the Shannon entropy of this base64 blob 'U2FsdGVkX1+abc123==' to see if it looks like it contains highly random or encrypted content?"},{"title":"Comparing text randomness for security audit","prompt":"I'm auditing some tokens our system generates — what's the Shannon entropy score for 'aB3xK9mZ2pQ7rY1w'? I need to confirm it's high entropy."}],"resultDescription":"Returns a JSON object containing the computed Shannon entropy value (in bits) for the input text, indicating the average information content per character. Higher values indicate more randomness/unpredictability.","failureModes":["Missing 'text' field returns validation error","Empty string may return entropy of 0 or an error","Payment failure (HTTP 402) if USDC balance is insufficient","Very long strings may hit request size limits","Non-UTF-8 or binary input may cause unexpected results"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call Shannon entropy calculation without any signup, API key, or KYC. Particularly useful for agents working with Persian/Iranian text alongside general entropy needs, or when already using IranTools for other text utilities and want a unified toolkit. Prefer over building local entropy code when operating in a serverless or agent workflow context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:24.652Z","isFirstParty":false,"canonicalSlug":"irantools-shannon-entropy-calculator-5af0f769"}