2 ms·
I'd like to practice verifying file integrity, instead of running `curl | sh`. I see that sha256sum (or 512) is the standard command people use. # Download
by lioeters 1y ago
I'd like to practice verifying file integrity, instead of running `curl | sh`. I see that sha256sum (or 512) is the standard command people use.
# Download package and its checksum
curl -fsSLO https://example.com/example-1.0.0.tar.gz
curl -fsSLO https://example.com/example-1.0.0.tar.gz.sha256
# Verify the checksum
sha256sum -c example-1.0.0.tar.gz.sha256
But if the server is compromised, the malicious actor would likely be able to serve a matching hash to their file?