<We use char[ ] for sensitive data in java, what a...
# stackoverflow
u
We use char[] for sensitive data in java, what about in Kotlin? Is CharArray okay? thanks in advance. We all know why we should use char[] instead of String for sensitive data such as password in Java. I'm just wondering about that same situation in Kotlin. The document says "When targeting the JVM, instances of this class (meaning CharArray) are represented as char[]". Does it mean using CharArray in Kotlin will have the same benefit (in terms of security)...