Use explicit RSA encryption padding
ProprietaryReplace Boolean padding arguments on attributed RSACryptoServiceProvider.Encrypt/Decrypt calls with RSAEncryptionPadding.OaepSHA1 or Pkcs1, preserving the existing padding choice. Typed Boolean expressions are evaluated once; named arguments, user-defined Boolean conversions, unresolved calls, and other providers are left unchanged. Does not change key generation, persistence, or certificate handling. Lambda/query contexts remain unchanged.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net3_1. UseExplicitRsaEncryptionPaddingmod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net3_1. UseExplicitRsaEncryptionPaddingInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.