Search code examples
securitykotlinproguardobfuscationbytecode

Does Kotlin provide any additional security?


When we develop an Android app in Java, we have the option to obfuscate the code and built the APK.

Is there any advance feature in Kotlin to do the same?


Solution

  • Code obfuscation is neither a Java feature nor a Kotlin one.

    Since Kotlin is compiled to the same bytecode as Java, you can use the same tools (for example Proguard). Those tools obfuscate the bytecode and not the sources, I think you misunderstood that.