Find weak Spring Security password encoders

Proprietary

Finds uses of Spring Security password encoders that are unsuitable for production password storage: NoOpPasswordEncoder (plaintext), StandardPasswordEncoder (deprecated SHA-256), MessageDigestPasswordEncoder (raw message digest), Md4PasswordEncoder (MD4, broken), LdapShaPasswordEncoder (deprecated), Md5PasswordEncoder and ShaPasswordEncoder (from the deprecated authentication.encoding package), and SCryptPasswordEncoder (deprecated in current Spring Security). Use an adaptive function such as BCryptPasswordEncoder, Argon2PasswordEncoder, or Pbkdf2PasswordEncoder instead.

org.openrewrite.java.security.search.FindWeakSpringPasswordEncoder
mod run . --recipe=org.openrewrite.java.security.search.FindWeakSpringPasswordEncoder

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