rhash

Compute and verify hash sums (MD5, SHA1, SHA256, etc.) of files

brewmacoslinux
Try with needOr install directly
Source

About

Utility for computing and verifying hash sums of files

Commands

rhash

Examples

Calculate SHA256 hash of a file$ rhash --sha256 filename.txt
Generate hash sums for all files in directory and save to file$ rhash -r --sha256 /path/to/directory > hashes.txt
Verify file integrity by checking against stored hash$ rhash --check hashes.txt