Use SHA‑256 instead of SHA‑1 when adding new file hashes. SHA‑256 provides stronger
security than SHA-1. Consider establishing a build pipeline step to auto‑compute hashes
and submit updated exceptions after each compile/release. Periodically review and
prune stale hashes.
For SHA‑1, replace
SHA256 below with SHA1.Procedure
- Use a trusted hashing tool or script that supports SHA‑256 and SHA‑1.
- For Windows:
- Open PowerShell.
- Run the following command replacing
C:\Path\To\File.exewith the path to the executable file:Get-FileHash "C:\Path\To\File.exe" -Algorithm SHA256
- For macOS or Linux:
- Open Terminal.
- Run the following command replacing
path/to/file.exewith the path to the executable file:shasum -a 256 /path/to/file.exe
