Find hardcoded provider names
ProprietaryFind cryptographic service providers and key storage providers selected by a name written in source, directly or through a constant: new CngProvider("..."), the provider name of new CspParameters(...) and assignments to CspParameters.ProviderName. A hardcoded provider ties the application to one implementation and blocks moving to providers that offer post-quantum algorithms.
OpenRewrite. CSharp. Recipes. Cryptography. FindHardcodedProviderNamemod run . --recipe= OpenRewrite. CSharp. Recipes. Cryptography. FindHardcodedProviderNameInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.