Hash Generator API - MD5, SHA-1, SHA-256 & SHA-512
Pass any string and receive its cryptographic hash in the algorithm of your choice. Supports MD5, SHA-1, SHA-256, SHA-384, and SHA-512. Useful for checksums, data integrity verification, and content fingerprinting.
Code examples
curl -X POST https://api.botoi.com/v1/hash \
-H "Content-Type: application/json" \
-d '{"text":"hello world","algorithm":"sha256"}'When to use this API
File integrity checks
Hash uploaded files server-side and compare against known checksums to verify downloads or detect tampering.
Content deduplication
Generate SHA-256 fingerprints for user-submitted content to detect duplicates before storing them in your database.
Webhook signature verification
Compute an HMAC or hash of incoming webhook payloads and compare it against the provider signature header.
Frequently asked questions
Which hash algorithm should I choose?
SHA-256 is the most common choice for checksums and data integrity. MD5 and SHA-1 are faster but considered cryptographically weak. Use SHA-512 when you need a longer digest.
Is the hash output hex-encoded?
Yes. The API returns the hash as a lowercase hexadecimal string.
Can I hash binary data?
The API accepts UTF-8 strings. For binary data, Base64-encode it first using the /v1/base64/encode endpoint, then hash the encoded string.
Is MD5 safe for passwords?
No. MD5 is not collision-resistant and should never be used for password storage. Use bcrypt or Argon2 for passwords. MD5 is fine for non-security checksums.
What is the maximum input size?
The request body limit is 1 MB. For larger payloads, hash them client-side or split them into chunks.
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.