Use constant-time comparison for Kotlin cryptographic byte arrays
ProprietaryUse MessageDigest.isEqual for resolved Arrays.equals(ByteArray, ByteArray) or ByteArray.contentEquals when shared program analysis proves a digest or MAC output reaches the comparison. Other comparisons are preserved.
org. openrewrite. kotlin. security. UseConstantTimeCryptographicComparisonmod run . --recipe= org. openrewrite. kotlin. security. UseConstantTimeCryptographicComparisonInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.