sha1sum
Compute SHA-1 hash digests of files or stdin for basic integrity verification. Returns JSON with per-file hash values.
Instructions
Compute SHA-1 hash digests of files or stdin. Read-only, no side effects. Returns JSON with per-file hash values. Use for basic integrity verification compatible with legacy systems. Not for security-critical applications — SHA-1 is cryptographically broken; use 'sha256sum' or 'b2sum'. 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. |