Closed
Description
Prerequisites
- Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
- Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Document new
Get-Foo
cmdlet" instead of "New cmdlet."
Module
PSScriptAnalyzer
Summary
PSScriptAnalyzer added a new rule, PSAvoidUsingBrokenHashAlgorithms. The documentation for this rule should be added to the official docset. This rule warns a developer when they use a broken algorithm.
Details
The rule warns when a code statement uses either the MD5 or SHA1 hash algorithm, as those algorithms have been broken.
For example, this code violates the new rule:
Get-FileHash ./foo.txt -Algorithm SHA1
Content Type
Concept
Articles
- reference\docs-conceptual\PSScriptAnalyzer\Rules\AvoidUsingBrokenHashAlgorithms.md
- reference\docs-conceptual\PSScriptAnalyzer\Rules\README.md
Related Source Pull Requests
Related Source Issues
None.