Find insecure Rfc2898DeriveBytes constructors (SYSLIB0041)

Proprietary

Finds Rfc2898DeriveBytes constructor calls that use default SHA1 or low iteration counts, which are obsolete in .NET 7 (SYSLIB0041). Specify HashAlgorithmName and at least 600,000 iterations.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net7.FindRfc2898InsecureCtors
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net7.FindRfc2898InsecureCtors

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.