{"openapi":"3.0.3","info":{"title":"Hash API","version":"1","description":"Hash text using MD5, SHA-1, SHA-256, SHA-384, or SHA-512."},"servers":[{"url":"https://tulz.org"}],"paths":{"/api/v1/hash":{"post":{"summary":"Hash a string","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"The input string to hash. Max 10,000 chars."},"algorithm":{"type":"string","enum":["md5","sha1","sha256","sha384","sha512"],"default":"sha256"},"encoding":{"type":"string","enum":["hex","base64"],"default":"hex"},"all":{"type":"boolean","default":false,"description":"If true, return hashes for all algorithms at once."}}}}}},"responses":{"200":{"description":"Hash result","content":{"application/json":{"schema":{"type":"object","properties":{"algorithm":{"type":"string"},"encoding":{"type":"string"},"hash":{"type":"string"},"length":{"type":"integer"},"all":{"type":"object"}}}}}}}}}}}