Find quantum-vulnerable public-key algorithms

Proprietary

Find where RSA, DSA, ECDSA and ECDH keys are created (RSA.Create(), new RSACryptoServiceProvider(), ECDsa.Create(curve), ...), looked up by name (AsymmetricAlgorithm.Create("RSA"), CryptoConfig.CreateFromName("ECDsa")) or loaded from certificates (GetRSAPrivateKey(), GetECDsaPublicKey(), ...). These algorithms are broken by Shor's algorithm on a quantum computer and need to migrate to post-quantum algorithms such as ML-KEM, ML-DSA or SLH-DSA.

OpenRewrite.CSharp.Recipes.Cryptography.FindQuantumVulnerableAlgorithms
mod run . --recipe=OpenRewrite.CSharp.Recipes.Cryptography.FindQuantumVulnerableAlgorithms

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