Comments (6)
You would have to have to keep the previous key to decrypt it initially then encrypt it with the new key. Not sure how you'd implement that but it's essentially like trying to log in an account with a different password to the one that's stored.
from redux-persist-transform-encrypt.
I have implemented the same in a fork. yeah, I don't feel great about it. But we need to change the password. It would be helpful if we can add it on the home page as a warning.
from redux-persist-transform-encrypt.
@ansal-exp This sounds like a good idea. It would probably be possible to support something like an oldSecretKey
option that would handle the conversion from an old secret key to a new one.
from redux-persist-transform-encrypt.
same issue
from redux-persist-transform-encrypt.
Thinking about this a bit more, I think that migrating from one secret key to another might be something that has to take place in user land. At the very least, I think it needs to exist at a scope higher than a single transform.
The reason being that the encrypt transform has no idea about the current state of the store (Is it encrypted? Is it encrypted with a different key?).
from redux-persist-transform-encrypt.
Closing this issue since I don't plan to look into this.
Seems like something that needs to happen in the consuming application.
from redux-persist-transform-encrypt.
Related Issues (20)
- persistor.purge() after error
- Cannot save simple text as state. HOT 2
- Add support for asynchronous encryption HOT 3
- Error: Unable to resolve module `crypto` HOT 2
- ERROR: (0, _reduxPersistTransformEncrypt.default) is not a function HOT 1
- How to update the secretKey async HOT 9
- Update Crypto-js version HOT 2
- Question: Why the Readme says that you should not generate your secret key on the client ? HOT 1
- My persist didnt encrypted HOT 7
- v4 Not working with react-native HOT 7
- Add encryption to project where users already have unencrypted data HOT 1
- Not working with react native HOT 12
- How to use .env.local variables with next js13 app directory HOT 2
- Could not run jest unit testcases on updating redux-persis-transform-encrypt package version from "3.0.1"to "5.0.0" HOT 4
- Vitest failing with message - Failed to resolve entry for package "redux-persist-transform-encrypt" HOT 3
- Critical Security Vulnerability from crypto-js HOT 1
- Failed to resolve the path HOT 3
- (Question) Need a way to decrypt the value outside the application HOT 1
- Module not found issue in react HOT 13
- Module not found error when using version 5.1.0 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux-persist-transform-encrypt.