Hash (MD5 / SHA)
hash_computeCompute MD5, SHA-1, SHA-256, or SHA-512 for text or files, optionally add an HMAC key, and verify results against an expected checksum.
Instructions
Compute MD5, SHA-1, SHA-256 and SHA-512 of text or a file (path or base64), optionally an HMAC with a key, and check against an expected checksum (hex in any case/spacing, "SHA256 (file) = …" lines, or base64). Web version: https://s3eidat.github.io/hash-lab/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Or: a file to hash: local path or base64. | |
| text | No | Text to hash (UTF-8). | |
| format | No | Output encoding. | hex |
| hmacKey | No | If set, also compute HMAC with this key. | |
| expected | No | A checksum to compare against; the result says which algorithm matched. | |
| hmacAlgorithm | No | SHA-256 |