Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.ml
programming·ProgrammingbyZenlix

SQLite alternative with encryption

I am searching for an SQL lite alternative that implements encryption more or less or of the box and has rust bindings. Do you know of any database systems that fulfill that requirement?

View original on lemmy.ml
32

15 replies

lemmy.world

The application encrypts the data, you save in the database the data encrypted. When you retrieve the info, the app decrypt it.

19
deegeesereply
sopuli.xyz

This makes it impossible to support any analytical SQL queries against the DB. Look into how to enable encryption at rest on whichever DB you choose.

10

So put an SQLite database on a Luks-encrypted partition or a Luks-encrypted filesystem in a file.

11

SQLCipher fits that bill. I had some issues with language integration but depending on what you're using it might work for you.

6

Depending on the application could you just mount a filesystem that supports encryption? Even if it’s just mounting a .tar file.

6
lemmy.world

Encryption is usually implemented in the server or client code. Why do you want the database to handle encryption?

2
Zenlixreply
lemmy.ml

It is for as desktop app that stores data on a user drive.

2
lemmy.world

Then the application should encrypt the data saved to the db.

I can't think of any scenario where it would make sense for the db to handle encryption.

1

Encryping by the application would kill the use of a lot of sql features such as SUM.

3

You reached the end

SQLite alternative with encryption | Spyke