dcodeio / endecrypt Goto Github PK
View Code? Open in Web Editor NEWPassword based en-/decryption of arbitrary data with and for node.js. http://dcode.io
License: Apache License 2.0
Password based en-/decryption of arbitrary data with and for node.js. http://dcode.io
License: Apache License 2.0
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?
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) {})
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.