Find IvParameterSpec(byteArrayOf(...)) constructions with a literal IV

Proprietary

A constant IV defeats the IND-CPA guarantees of CBC/GCM/CTR — every message encrypted under the same key/IV pair leaks the same prefix structure. Generate a fresh IV per message from SecureRandom and prepend it to the ciphertext.

org.openrewrite.kotlin.security.FindPredictableIv$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.security.FindPredictableIv$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.