finds.dev

commonsguy/cwac-saferoom

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

View on GitHub

★ 632JavaApache-2.0updated Jan 2020

// the take

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.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
632
Forks
76
Language
Java
License
Apache-2.0
Last commit
11 Jan 2020

// nearby

If cwac-saferoom isn't quite it.

All repos →