crypto_hash
Compute one or more hash digests (MD5, SHA, CRC32, Adler32) from UTF-8 text. Returns hex strings for each algorithm in a single call.
Instructions
Cryptographic Hash Generator (MD5, SHA, CRC32, Adler32). Compute one or more hash digests of a UTF-8 text string in a single call. Supports MD5, SHA-1, SHA-256, SHA-512 cryptographic hashes plus CRC32 and Adler32 checksums, returned as a lowercase or uppercase hex string per algorithm. Use crypto_hash for general text digests; use crypto_checksum for the wider non-cryptographic checksum set (Fletcher, FNV, CRC variants), crypto_hmac for keyed message authentication, or crypto_hash_identifier to detect an unknown hash's algorithm. Runs locally on the input you provide: deterministic, read-only, non-destructive, contacts no external service, and is rate-limited. Returns a map of algorithm id to hex digest, the algorithms that produced output, the output format, and the input byte length.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The UTF-8 text to hash. Hashed as raw bytes; an empty string is permitted and yields each algorithm's empty-input digest. | |
| algorithms | Yes | One or more algorithm ids to compute. Also accepts an object map of id to boolean. Unknown ids are silently skipped; if none are valid it falls back to md5 and sha256. | |
| outputFormat | No | Hex digit case for every digest: "hex" for lowercase, "HEX" for uppercase. Any other value is treated as "hex". | hex |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hashes | No | Map of algorithm id (md5, sha1, sha256, sha512, crc32, adler32) to its hex digest; algorithms not requested have an empty-string value. | |
| algorithms | No | Algorithm ids that produced a digest (unknown ids dropped). | |
| outputFormat | No | The normalized hex case applied (hex or HEX). | |
| inputLength | No | Byte length of the input text. |