Find MessageDigest.getInstance("MD2") calls

Proprietary

MD2 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$KtRecipe
mod 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.