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.lockRelated terms
- hash — A short fixed-length fingerprint calculated from data, which changes completely if even one byte of the data changes.
- SHA-256 — A widely used hash function that turns any data into a 256-bit fingerprint, shown as 64 hexadecimal characters.
- OpenSSL — A widely used toolkit and library for cryptography and TLS, including the openssl command-line tool.
Taught in
- Speeding Up Builds: Caching Dependencies — Continuous Integration & Continuous Delivery Pipelines