redux-persist-transform-encrypt icon indicating copy to clipboard operation
redux-persist-transform-encrypt copied to clipboard

My persist didnt encrypted

Open enricoirawan opened this issue 3 years ago • 6 comments

image image

I tried to use this library to encrypted my persist storage, but when i run the app and check in the browser storage, the redux state didnt get encrypted, can you help me? thanks

enricoirawan avatar May 30 '22 04:05 enricoirawan

image image

I tried to use this library to encrypted my persist storage, but when i run the app and check in the browser storage, the redux state didnt get encrypted, can you help me? thanks

I think that your problem is with the key 'transforms'. You forgot to add the 's'

hichemBAALI avatar Jul 26 '22 21:07 hichemBAALI

I'm having the exact same issue to this, when I pull up the redux states with the app running in the browser after using this library all the states are visible. Not sure what's happening with this library but it does not appear to be encrypting any data.

jakemckenzie avatar Jul 26 '22 23:07 jakemckenzie

Could you provide an example repo with a minimal reproduction case?

maxdeviant avatar Jul 29 '22 02:07 maxdeviant

@maxdeviant before I produce you a reproduction because my project is closed source: is this module only meant to encrypt the states while the application is not running and the states are stored in local storage?

jakemckenzie avatar Jul 29 '22 07:07 jakemckenzie

@maxdeviant before I produce you a reproduction because my project is closed source: is this module only meant to encrypt the states while the application is not running and the states are stored in local storage?

Yes, the state is only encrypted at rest. When the store is hydrated from the persisted copy the in-memory state will be decrypted.

maxdeviant avatar Jul 29 '22 12:07 maxdeviant

ction because my project is closed source: is this module only meant to encrypt the states while the application is not running

Alright well on my end this was a miscommunication and I suspect the original poster as well. I expected the state to be encrypted regardless of whether the app was running or not.

jakemckenzie avatar Aug 02 '22 14:08 jakemckenzie

Closing because no repro was provided.

maxdeviant avatar Mar 25 '23 02:03 maxdeviant