shasum

Calculate or check cryptographic SHA checksums.

Install

All systems
curl cmd.cat/shasum.sh
Debian Debian
apt-get install libdigest-sha-perl
Ubuntu
apt-get install libdigest-sha-perl
Alpine
apk add perl
Arch Arch Linux
pacman -S perl
image/svg+xml Kali Linux
apt-get install libdigest-sha-perl
Fedora
dnf install perl-Digest-SHA-1
OS X
brew install perl
Raspbian
apt-get install libdigest-sha-perl
Docker
docker run cmd.cat/shasum shasum powered by Commando

Calculate or check cryptographic SHA checksums.

  • Calculate the SHA1 checksum for a file:
    shasum filename
  • Calculate the SHA256 checksum for a file:
    shasum --algorithm 256 filename
  • Calculate the SHA512 checksum for multiple files:
    shasum --algorithm 512 filename1 filename2
  • Check a file with a list of sums against the directory's files:
    shasum --check list_file
  • Calculate the SHA1 checksum from stdin:
    somecommand | shasum

© tl;dr; authors and contributors