md5sum
Compute MD5 hash digests of files or stdin for fast integrity checks and data deduplication. Returns JSON with hash values and byte counts.
Instructions
Compute MD5 hash digests of files or stdin. Read-only, no side effects. Returns JSON with per-file hash values and byte counts. Use for fast non-cryptographic integrity checks and data deduplication. Not for security or cryptographic verification — MD5 is collision-broken; use 'sha256sum' or 'b2sum' for security. See also 'sha256sum', 'hash'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| check | No | Read checksums from FILE(s) and verify them. | |
| paths | No | Files to hash, or '-' for stdin (omit with --check). | |
| encoding | No | Text encoding (default: utf-8). Use 'auto' for BOM/autodetection. | utf-8 |
| show_encoding | No | Include encoding detection metadata in JSON result. | |
| encoding_errors | No | How to handle encoding errors (default: replace). | replace |
| encoding_profile | No | Locale-aware encoding fallback profile for auto-detection. |