Code Monkey home page Code Monkey logo

endecrypt's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

endecrypt's Issues

TypeError: The "digest" argument is required and must not be undefined

Hello

TypeError: The "digest" argument is required and must not be undefined
crypto.js:694
at pbkdf2 (crypto.js:694:11)
at Object.exports.pbkdf2 (crypto.js:682:10)
at Encrypt. (c:\Users\user\Desktop\Projects\speak-up\speakup\speakup-api\node_modules\endecrypt\src\endecrypt.js:88:20)

The error is obtained when use Endecrypt with Node js >=v8.0.0

It's happened because crypto.pbkdf2 method was changed. Look table below.

Version Changes
v8.0.0 The digest parameter is always required now.
v6.0.0 Calling this function without passing the digest parameter is deprecated now and will emit a warning.
v6.0.0 The default encoding for password if it is a string changed from binary to utf8.
v0.5.5 Added in: v0.5.5

Can you fix it, please?

TypeError: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt

Im getting this error while decrypting an encrypted value saved on the db, Im using node 0.10.28.

Ive been getting this error when I changed from ubuntu to smartOS, Im not sure if that has anything to do with it.

Im running this command

App.Utils.endecrypt.decrypt(valuep.reverse(), readfile, {rounds:2}, function (err, dec){ console.log(err);})

and this to encrypt

App.Utils.endecrypt.encrypt(attrBuffer, data, {rounds: 2}, function (err, enc) {})

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.