Verify a Downloaded File’s SHA-256 Checksum with Python
Compare a downloaded file with a trusted SHA-256 value using a streaming Python verifier. Reproduce matching, changed and unreadable files with explicit exit codes.
python / shellscript / sha256↗