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
Jeff Lockhart
12/09/2022, 7:38 AM
I've used Krypto for its SecureRandom implementation and it's worked well for this use.
h
Hee Fan
12/09/2022, 7:40 AM
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
Jeff Lockhart
12/09/2022, 8:04 AM
Ah, yes. It doesn't look like it supports RSA or IVs.