shasum

A command-line tool that prints the SHA checksum of files, with -a 256 selecting SHA-256.

In more detail

It is a Perl script shipped with macOS and many Linux systems; sha256sum is a similar tool. The output is the hexadecimal digest followed by the file name.

Example

shasum -a 256 requirements.lock

Related terms

Taught in

References