Giter Site home page Giter Site logo

Comments (6)

maxdeviant avatar maxdeviant commented on May 30, 2024

@egold Funnily enough, I've never actually tried what happens with a incorrect key 😅

But it seems like a fairly common case, so I may look into writing some docs up on it.

from redux-persist-transform-encrypt.

egold avatar egold commented on May 30, 2024

@maxdeviant have you had any luck with this?

from redux-persist-transform-encrypt.

egold avatar egold commented on May 30, 2024

Seems like this code in sync.js assumes valid JSON:

 27   var makeSyncDecryptor = function makeSyncDecryptor(secretKey) {
 28   return (0, _helpers.makeDecryptor)(function (state) {
 29     var bytes = _aes2.default.decrypt(state, secretKey);
 30     return JSON.parse(bytes.toString(_core2.default.enc.Utf8));
 31   });
 32 };

from redux-persist-transform-encrypt.

yogeshwar-20 avatar yogeshwar-20 commented on May 30, 2024

@maxdeviant this is an issue I want to handle as well. Currently this is what happens for a wrong key scenario:
screen shot 2017-07-19 at 12 13 22 pm

Looking at this library and general redux transform patterns I wasn't able to identify any error handling mechanism. Any updates on if you've been successful with this @egold ?

from redux-persist-transform-encrypt.

egold avatar egold commented on May 30, 2024

@maxdeviant is this now closed by b500775 ? (if yes: thanks!)

from redux-persist-transform-encrypt.

maxdeviant avatar maxdeviant commented on May 30, 2024

@egold Yes, I think that should cover this case 👍

If it doesn't then I can re-open this issue.

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.