sha256sum — compute a SHA-256 checksum
SYNOPSIS
sha256sum <text...>
DESCRIPTION
Computes the SHA-256 checksum of the given text (UTF-8 encoded) via the Web Crypto API and prints it as lowercase hex, followed by " -" (as for standard input).
HOW IT WORKS
SHA-256, from the SHA-2 family, turns any input into a 256-bit digest shown as 64 hexadecimal characters. The page uses the browser's native Web Crypto API (crypto.subtle.digest), and the text is hashed as UTF-8 bytes, so the result matches echo -n "text" | sha256sum on Linux.
USE CASES
- verify the integrity of a file or a release against its SHA-256 sum;
- compare two texts or configurations without showing them;
- build test fixtures for APIs that sign or hash payloads.
PRIVACY
The hash is computed locally in your browser: the text never leaves the page.
EXAMPLES
sha256sum hello