finds.dev← search

// the find

commonsguy/cwac-saferoom

★ 632 · Java · Apache-2.0 · updated Jan 2020

CWAC-SafeRoom: A Room<->SQLCipher for Android Bridge

SafeRoom was a bridge library that let Android Room use SQLCipher as its backing database instead of plain SQLite, enabling transparent encryption. It's now retired — SQLCipher for Android ships its own SupportSQLite implementation, making this redundant. If you're starting fresh, go straight to SQLCipher's official Room integration.

The passphrase handling is done carefully — char arrays instead of Strings to allow explicit memory clearing, which most tutorials get wrong. Test suite is unusually thorough for a bridge library: covers WAL mode, rekeying, migration from plaintext to encrypted, and close/reopen cycles. SQLCipherUtils includes utilities for encrypting an existing plaintext database in-place, which is genuinely useful and not obvious to implement correctly.

Abandoned since January 2020 and explicitly retired by the author — the README tells you to go elsewhere. Any Room version compatibility beyond what was current in early 2020 is untested and likely broken. The official SQLCipher integration has moved on; there's no practical reason to adopt this over the supported alternative.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →