Show HN: redb-turbo: redb with page-level compression and encryption
github.comI needed an embedded key-value store in Rust with encryption at rest. redb was almost perfect — pure Rust, ACID, great API — but no encryption support. SQLCipher exists for SQLite but there's nothing like it for redb. And nothing exists for either that can do encryption+compression while supporting full-text search.
So I forked it. redb-turbo adds encryption and compression at the page level. The API is identical to redb — you just add a line or two to the builder. Works with encryption only, compression only, or both. And you can train a custom compression dictionary on your redb pages. It includes a benchmark - either setting definitely slows down reads and writes, but not too badly.
https://crates.io/crates/redb-turbo
I would love feedback on this, I definitely need to harden it before deploying in some systems projects. But I hope it's directionally useful for some folks.
No comments yet.