PVermeer / dexie-addon-suite-monorepo

MIT License
8 stars 0 forks source link

Decryption Help #2

Closed mrevjd closed 1 year ago

mrevjd commented 1 year ago

Hi team, Great addon. thanks! I'm just trying to understand how to decrypt the data on reading. I have been suing your html example and can see the data is encrypted Thanks

PVermeer commented 1 year ago

Hi there,

You should not have to encrypt / decrypt data yourself. It saves data encrypted in the Dexie database and encrypt it on reading. I've made a test example and it seems to work fine:

StackBlitz example

If its not working for you please provide an example or fork and edit the StackBlitz to your setup.

I did notice an error in the HTML example concerning the namespace of the Encrypted class. This will be corrected. Fixed with commit 620651a8e4ebb542d2ccbd6c230372936063037e

mrevjd commented 1 year ago

Thank you for such a speedy response. I will try your example and let you know.

mrevjd commented 1 year ago

@PVermeer I know where I went wrong by using your example. Thank you once again.