sha2

Compute SHA-256, SHA-384, and SHA-512 cryptographic hash digests

brewmacoslinux
Try with needOr install directly
Source

About

Implementation of SHA-256, SHA-384, and SHA-512 hash algorithms

Commands

sha2

Examples

Compute SHA-256 hash of a file$ sha2 -256 myfile.txt
Compute SHA-512 hash of a file$ sha2 -512 myfile.txt
Compute SHA-384 hash and display output$ sha2 -384 document.pdf