Giter Site home page Giter Site logo

Comments (6)

Aidurber avatar Aidurber commented on May 29, 2024

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.

ansal-exp avatar ansal-exp commented on May 29, 2024

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.

maxdeviant avatar maxdeviant commented on May 29, 2024

@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.

Dylan0916 avatar Dylan0916 commented on May 29, 2024

same issue

from redux-persist-transform-encrypt.

maxdeviant avatar maxdeviant commented on May 29, 2024

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.

maxdeviant avatar maxdeviant commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.