Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: redb-turbo: redb with page-level compression and encryption (github.com/russellromney)
2 points by russellthehippo 86 days ago | hide | past | favorite
I 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.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: