LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

sha512sum

Compute and verify SHA-512 checksums

TLDR

Calculate the SHA512 checksum of a file
$ sha512sum [path/to/file]
copy
Calculate checksums for multiple files
$ sha512sum [file1] [file2] [file3]
copy
Calculate and save checksums to a file
$ sha512sum [*.iso] > [checksums.sha512]
copy
Verify checksums from a file
$ sha512sum -c [checksums.sha512]
copy
Verify silently (only show failures)
$ sha512sum -c --quiet [checksums.sha512]
copy
Read from stdin
$ echo -n "[text]" | sha512sum
copy

SYNOPSIS

sha512sum [OPTION]... [FILE]...

DESCRIPTION

sha512sum computes and verifies SHA512 (512-bit) message digests as described in FIPS-180-2. It generates a 128-character hexadecimal hash for file contents, providing strong integrity verification.With no FILE argument or when FILE is -, sha512sum reads from standard input. Output format is: checksum, space, mode indicator (* for binary, space for text), and filename.SHA512 provides stronger security than SHA1 or MD5 and is suitable for cryptographic applications. There is no difference between binary and text mode on GNU systems.

PARAMETERS

-b, --binary

Read in binary mode
-c, --check
Read checksums from FILEs and verify them
-t, --text
Read in text mode (default)
--tag
Create a BSD-style checksum output
-z, --zero
End each output line with NUL instead of newline
--ignore-missing
Don't fail for missing files when checking
--quiet
Don't print OK for each successfully verified file
--status
Don't output anything; use exit status for result
--strict
Exit non-zero for improperly formatted checksum lines
-w, --warn
Warn about improperly formatted checksum lines

INSTALL

sudo apt install coreutils
copy
sudo dnf install coreutils
copy
sudo pacman -S coreutils
copy
sudo apk add coreutils-sha512sum
copy
sudo zypper install coreutils
copy
brew install coreutils
copy
nix profile install nixpkgs#coreutils
copy

CAVEATS

SHA512 produces significantly longer hashes (128 hex characters) compared to SHA256 (64) or SHA1 (40). While more secure, verification may be slower for large numbers of files compared to weaker algorithms.

HISTORY

sha512sum is part of GNU coreutils, written by Ulrich Drepper, Scott Miller, and David Madore. SHA-512 was published by NIST as part of the SHA-2 family in 2001, designed to replace the aging SHA-1 algorithm.

SEE ALSO

sha256sum(1), sha384sum(1), sha224sum(1), sha1sum(1), md5sum(1), b2sum(1), shasum(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid