Using encryption in rocksdb

1,107 views
Skip to first unread message

halde...@gmail.com

unread,
Sep 14, 2021, 7:56:03 AM9/14/21
to rocksdb
Hi ,

I am trying to use encryption in rocksdb. Can any one point me to example code on how I can encrypt the database files on disk ?

Regards
Halder

Peter Dillinger

unread,
Sep 14, 2021, 2:56:04 PM9/14/21
to halde...@gmail.com, rocksdb
An outside contributor added an Env wrapper for encrypting/decrypting RocksDB files. I don't know much about it, except that ROT13 is not real cryptography. 😉  https://github.com/facebook/rocksdb/blob/main/include/rocksdb/env_encryption.h 

Peter

From: roc...@googlegroups.com <roc...@googlegroups.com> on behalf of halde...@gmail.com <halde...@gmail.com>
Sent: Tuesday, September 14, 2021 4:56 AM
To: rocksdb <roc...@googlegroups.com>
Subject: Using encryption in rocksdb
 
--
You received this message because you are subscribed to the Google Groups "rocksdb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rocksdb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rocksdb/c392ff35-26d3-4995-ba68-f9eee38f50c0n%40googlegroups.com.

Arnab Halder

unread,
Sep 23, 2021, 11:49:30 AM9/23/21
to Peter Dillinger, rocksdb
Thanks, I have checked it.

Is it possible to provide my own AES Encryption provider instead of using ROT13 ? Can any one point me to such example ?

Regards
Halder

Sébastien Tauvel

unread,
Sep 23, 2021, 11:59:59 AM9/23/21
to Arnab Halder, Peter Dillinger, rocksdb
We just use filesystem encryption (LUKS).
Let me know where file encryption is a better solution?

Mark Rambacher

unread,
Sep 23, 2021, 7:17:06 PM9/23/21
to Arnab Halder, rocksdb
There are a couple of examples of Encryption Providers working their way slowly through the PR process.  Checkout PR8943, 7020, and 6717 for examples.  



Arnab Halder

unread,
Oct 1, 2021, 9:22:01 AM10/1/21
to Mark Rambacher, rocksdb
Thanks. Planning to provide own BlockCipherClass instead of ROT13.

Halder
Reply all
Reply to author
Forward
0 new messages