hi guys, may I have you suggestion on Kotlin mult...
# multiplatform
h
hi guys, may I have you suggestion on Kotlin multiplatform reliable encryption library? Thanks. I have checked ionspin/kotlin-multiplatform-crypto , and ionspin/kotlin-multiplatform-libsodium. The libs are in experimental. It cannot pass our company’s cyber security review process.
j
Have you tried Korlibs Krypto? https://docs.korge.org/krypto/
h
I have not yet tried any encryt/decrypt library. I’d like to know which lib is popular for enterprise project. Thanks for your suggestion. I will give a try krypto. Cheers.
j
I've used Krypto for its SecureRandom implementation and it's worked well for this use.
h
Great. Just read their doc, I think we need more secure function,
Copy code
fun decryptAes128Cbc(encryptedMessage: ByteArray, cipherKey: ByteArray): ByteArray
for example, I hope I can pass IV and Salt to the encryption function. And it seems it has AES, but RSA. 😉 Good to know this. Thanks for sharing.
j
Ah, yes. It doesn't look like it supports RSA or IVs.
140 Views