Hey all,
Just wanted to share a solution we put together at Desquared that might be useful to others here.
We needed a fully encrypted Room database in a Kotlin Multiplatform (KMP) app with shared persistence across Android and iOS. To make this work, we combined Room + SQLCipher and set up a custom driver for iOS to enable encryption, while keeping the database logic in shared code.
We open-sourced the project and documented the approach here:
https://desquared.notion.site/Encrypted-Room-Database-in-Kotlin-Multiplatform-KMP-for-Android-iOS-25b9aac7b816801b9067c627602335c6
Hope it’s helpful for others working on similar challenges.
🙌 9
K 5
s
s3rius
09/09/2025, 8:45 AM
Thank you! A few days ago I was wondering about how feasible db encryption is on KMP.