thanhnguyen2187 / cryptaa

Offline-first blazing fast & secure note taking application
https://cryptaa.pages.dev
MIT License
9 stars 0 forks source link

Add encrypted note insertion #1

Closed thanhnguyen2187 closed 2 months ago

thanhnguyen2187 commented 2 months ago

The current model is:

  1. Unencrypted data is inserted
  2. Data is encrypted
  3. Data is synchronized to the server

There is a risk that step 3 happens before step 2, and we have unencrypted data on the server for a short time.

thanhnguyen2187 commented 2 months ago

Should be resolved by https://github.com/thanhnguyen2187/cryptaa/commit/906ad918f87c13f9c486b60d3552a4b453db67ef.