How to Verify File Checksums on macOS, Linux, and Windows
A cryptographic checksum, such as SHA-256, acts as a unique fingerprint for a file's exact contents, changing entirely if even a single bit is altered during download or transfer. Verifying a checksum confirms both that a file was not corrupted in transit and that it matches what the publisher originally distributed. On macOS and Linux, the built-in commands shasum -a 256 or sha256sum handle this, while Windows users can rely on certutil -hashfile or PowerShell's Get-FileHash. SHA-256 is the recommended algorithm for security purposes, whereas MD5 and SHA-1 are considered insufficient against deliberate tampering. Browser-based tools that use the Web Crypto API offer a convenient alternative, provided the file is hashed locally and never uploaded to a remote server.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in