Use the AES factory for closed CBC provider locals

Proprietary

Replace a closed parameterless AesCryptoServiceProvider plain local with Aes.Create(), consistently retyping the local and resolved forwarded properties/transforms. Preserve key/IV/padding/size expressions, order and lifetime. Allow Mode only as a resolved literal CBC assignment; reject FeedbackSize, mode observations/other assignments, identity, escapes, captures, explicit disposal, using resources, initializers, directives and conditional snapshots. Standalone modern-.NET cleanup; no historical Framework CSP/FIPS or format change.

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

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