Use the same hash factory for a local that reads stored hash state

Proprietary

Replace parameterless MD5 CSP or SHA Managed/CSP construction in a closed plain local that computes a digest and reads inherited Hash/HashSize properties with its same-algorithm factory. Preserve property reads, clone behavior, hashing and terminal cleanup. Skip reads/hashing after cleanup, other members, escapes, captures, initialization, async/iterators and snapshots. Separate opt-in modern-.NET port; no encoding, digest format or algorithm strengthening.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.UseStoredHashLocalFactory
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.UseStoredHashLocalFactory

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