Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] Is it possible to encrypt localStorage? #21

Closed
beebase opened this issue Aug 6, 2022 · 3 comments · Fixed by #22
Closed

[question] Is it possible to encrypt localStorage? #21

beebase opened this issue Aug 6, 2022 · 3 comments · Fixed by #22

Comments

@beebase
Copy link

beebase commented Aug 6, 2022

thanks.

@MacFJA
Copy link
Owner

MacFJA commented Aug 7, 2022

Right now, no.
The built in Storage don't provide this feature.

But I was able to easily create a new Storage that encrypt data.

I will publish it when I finish to rewrite the serialization feature of the lib (I'm not that far), except if you urgently need the encryption storage, In which case I can publish it separately.

@beebase
Copy link
Author

beebase commented Aug 8, 2022

That's ok, It's not urgent. I'm using encryptjs right now before storing/reading.
I just thought it would be convenient skipping that extra code step if svelte-persistent-store could handle that internally.

I'm really enjoying using svelte-persistent-store. Works well with all the browser storage options and it's cool to have this in one package with very easy syntax.
Thanks so much and I'll just patiently wait for a next release. 👍

@MacFJA
Copy link
Owner

MacFJA commented Aug 13, 2022

Here the new encryption storage: https://github.com/MacFJA/svelte-persistent-store/blob/update/.docs/Examples/04-Encrypted-Storage.md

It will be added in a few day when the PR #22 is merged

The version will probably bump to 2.0.0 as there are many changes that break backward compatibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants