Use one-shot AES-CBC for closed PKCS7 encryption
ProprietaryReplace one temporary encryptor and adjacent full-array TransformFinalBlock call after explicit Key/IV/CBC/PKCS7 settings on an Aes.Create local. Preserve the Length null failure and original data/settings; require one transform use and no cipher escapes. Skip other providers/modes/padding, decryption, stateful transforms, captures/ref/unsafe/async and conditional snapshots. Opt-in modern API port, no algorithm strengthening.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net6. UseClosedAesCbcPkcs7OneShotmod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net6. UseClosedAesCbcPkcs7OneShotInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.