| description | Avoid using broken hash algorithms |
|---|---|
| ms.custom | PSSA v1.21.0 |
| ms.date | 06/28/2023 |
| ms.topic | reference |
| title | AvoidUsingBrokenHashAlgorithms |
Severity Level: Warning
Avoid using the broken algorithms MD5 or SHA-1.
Replace broken algorithms with secure alternatives. MD5 and SHA-1 should be replaced with SHA256, SHA384, SHA512, or other safer algorithms when possible, with MD5 and SHA-1 only being utilized by necessity for backwards compatibility.
Get-FileHash foo.txt -Algorithm MD5Get-FileHash foo.txt -Algorithm SHA256Get-FileHash foo.txt -Algorithm SHA1Get-FileHash foo.txt