Use the same hash factory for an inline provider used once
ProprietaryReplace parameterless MD5CryptoServiceProvider or SHA1/SHA256/SHA384/SHA512 Managed/CryptoServiceProvider construction used directly as the receiver of a BCL ComputeHash call with the same algorithm's modern Create() factory. Preserve the original ComputeHash overload and arguments. Skip object initialization, other methods, escaped providers, internal constructor comments and conditional snapshots. Opt-in compatibility port; no algorithm strengthening. Lambda/query contexts remain unchanged.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net6. UseInlineHashFactorymod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net6. UseInlineHashFactoryInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.