Find MessageDigest.getInstance("MD2") calls
ProprietaryMD2 is older and weaker than MD5 — preimage and collision attacks are well-known. It exists in the JDK only for legacy interop and should never appear in new code.
org. openrewrite. kotlin. security. FindWeakHashMd2$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. security. FindWeakHashMd2$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.