Use AES for a closed Rijndael scope with its existing 128-bit block size
ProprietaryReplace a parameterless RijndaelManaged using resource with Aes.Create(), explicitly retaining FeedbackSize128. Require a closed local with only forwarded key/IV/mode/padding/feedback properties and transform/key-generation calls. Reject every BlockSize reference, escapes, captures, identity inspection, initialization and conditional snapshots. Preserve caller algorithms, key size, mode, padding, argument evaluation and disposal. Opt-in modern-.NET compatibility port.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net6. UseScopedRijndael128AesFactorymod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net6. UseScopedRijndael128AesFactoryInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.