are there any convenience methods in the kotlin stb lib for encryption?
t
Tim McCormack
12/14/2019, 1:27 PM
Not sure, but I've been pretty happy with the LazySodium library.
Tim McCormack
12/14/2019, 1:29 PM
If the std lib had any such convenience methods, I'd be leery of using them, because they'd probably be very low-level, easy to screw up, and at risk of not working due to the export restrictions in effect on java's built-in crypto libraries.
d
deactivateduser
12/14/2019, 1:43 PM
i don't really think there is a built-in function for encryption in kotlin stdlib. However, since Kotlin is compatible with Java, i believe you can reuse the Cipher class to do encryption. Pair it with BouncyCastle library for better support.