Code Monkey home page Code Monkey logo

Comments (9)

dcodeIO avatar dcodeIO commented on July 22, 2024

This error is usually thrown when the provided key is incorrect. If it is definitively correct, this could also be some sort of incompatibility that I am not yet aware of. Hope it isn't the latter.

Other resources also mention incompatible padding as a cause.

from endecrypt.

maumercado avatar maumercado commented on July 22, 2024

Defintely an incorrect key.

from endecrypt.

doomsbuster avatar doomsbuster commented on July 22, 2024

You saved my day. There are several posts that give code solutions but none of them explained when this error typically occurs. @dcodeIO thank you for this explanation.

from endecrypt.

mapleshawxiao avatar mapleshawxiao commented on July 22, 2024

let iv = ""; let cipher = crypto.createCipheriv(algorithm, key, iv);
maybe u can try this, add a vector, if u are using nodejs

from endecrypt.

godblesshugh avatar godblesshugh commented on July 22, 2024

got the same problems here, any further solution plz?

from endecrypt.

gjunming avatar gjunming commented on July 22, 2024

nodejs/node#2794 this is a solution to fix

from endecrypt.

godblesshugh avatar godblesshugh commented on July 22, 2024

thx, already use .setAutoPadding(false);

from endecrypt.

aliciafraguasrubio avatar aliciafraguasrubio commented on July 22, 2024

Another incorrect key here, thank you for the explanation!

from endecrypt.

sergio-domingues avatar sergio-domingues commented on July 22, 2024

incorrect key or incorrect ciphered data

from endecrypt.

Related Issues (2)

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.