livestorejs/livestore

Create encrypted sync example

Open

#184 opened on Sep 10, 2024

View on GitHub
 (0 comments) (2 reactions) (0 assignees)TypeScript (128 forks)github user discovery
encryptionexamplehelp wantedsyncing

Repository metrics

Stars
 (3,599 stars)
PR merge metrics
 (PR metrics pending)

Description

Many apps dealing with personal data would like to still be able to sync data between devices while also ensuring that only the user can read their own data.

Livestore could have support in its sync implementation for code that encrypts data on the way out and decrypts it as it comes in e.g. two new parameters encrypt and decrypt which take a function which does the work.

This doesn't solve the problem of how to share a key between clients but would be a useful building block for that.

Contributor guide