Preserve named hash dispatch through CryptoConfig
ProprietaryReplace resolved MD5/SHA1/SHA256/SHA384/SHA512.Create(string) with explicit CryptoConfig.CreateFromName dispatch and the same checked result type. Preserve configured mappings, null/unknown results, cast and constructor failures, and single name/construction evaluation. A pattern temporary avoids adding nullable cast warnings. Named/commented/unresolved calls, initializers, lambda/query contexts, other factories and conditional snapshots remain unchanged. Opt-in compatibility port; no algorithm or security policy is selected.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net7. UseCryptoConfigForNamedHashFactoriesmod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net7. UseCryptoConfigForNamedHashFactoriesInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.