Hi guys, what would you recommend to use for stori...
# multiplatform
b
Hi guys, what would you recommend to use for storing credentials in a kmm project
plus1 1
v
I'm not sure which platforms you're supporting, but this is a good start: https://github.com/russhwolf/multiplatform-settings It supports EncryptedSharedPreferences on Android and uses the iOS platform Security API for iOS. It also has JVM, Native and JS support too. Although I don't remember seeing encryption support for anything other than the ones I've already mentioned. Maybe there's something on Windows too. ---- If you also have concerns about the database, using SQLCipher might be a good call. You can: • Generate a random password. • Store it using a safe mechanism like the ones mentioned before for iOS, and Android. • Use this password to connect to the SQLite Database using SQLCipher. This is not up-to-date, but it's the best material I found about using it: https://touchlab.co/sqlcipher-kotlin-multiplatform-mobile/ SQLCipher increases the size of your application, as it will require you to bundle this "alternative SQLite" with your app instead of using whatever the OS has. But on the other hand, you can use newer versions of SQLite, especially if you're supporting older Android versions.
b
@Vitor Hugo Schwaab thank you for your support, very helpful