zemirco / couch-pwd Goto Github PK
View Code? Open in Web Editor NEWCouchDB like salt and password generation with PBKDF2
CouchDB like salt and password generation with PBKDF2
Hi! I was just about to embark on creating something similar to couch-pwd as there needs to be a command line utility for hashing a CouchDB password. I'm looking to add this info to a post I wrote.
It looks this project has been abandoned. Is this the case? If not, would you be willing to take a PR that adds a command line interface?
Running this will now generate:
(node:44527) DeprecationWarning: crypto.pbkdf2 without specifying a digest is deprecated. Please specify a digest
The default digest is 'sha1'
. (I checked the Node source code to make sure.) You need to specify it explicitly or this library will no longer work in Node 7.
crypto.pbkdf2(pwd, salt, iterations, keylen, 'sha1', function(err, hash){
if (err) return cb(err);
cb(null, salt, hash.toString(encoding));
});
With Node v8 the crypto.pbkdf2(password, salt, iterations, keylen, digest, callback) function requires "digest".
TypeError: The "digest" argument is required and must not be undefined
at pbkdf2 (crypto.js:635:11)
at Object.exports.pbkdf2 (crypto.js:623:10)
at RandomBytes.ondone (.../node_modules/couch-pwd/index.js:55:14)
Can you please publish on npm with a release 0.02 as when i npm install couch-pwd i got the old version without the var digest = 'SHA1'; which cause pouchdb-browser to fail
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.