are there any convenience methods in the kotlin st...
# announcements
t
are there any convenience methods in the kotlin stb lib for encryption?
t
Not sure, but I've been pretty happy with the LazySodium library.
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
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.
1
b
i've only used java bouncy castle, but i did see they released a kotlin package: https://github.com/bcgit/bc-kotlin