{"_id":"pbkdf2-password","_rev":"10-7e008f4c0d0b1568d86363167148bac4","name":"pbkdf2-password","description":"Easy salt/password creation for Node.js, extracted from Mosca","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"pbkdf2-password","version":"1.0.0","description":"Easy salt/password creation for Node.js, extracted from Mosca","main":"pbkdf2-password.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"https://github.com/mcollina/pbkdf2-password.git"},"keywords":["pbkdf2","authentication"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/pbkdf2-password/issues"},"homepage":"https://github.com/mcollina/pbkdf2-password","devDependencies":{"chai":"^1.10.0","mocha":"^2.1.0"},"dependencies":{"async":"^0.9.0"},"gitHead":"7ae16e5544590aeb72de6b713de3df38cae5b33f","_id":"pbkdf2-password@1.0.0","_shasum":"3edb0017dac555c9068627140537abaa5e731a82","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"dist":{"shasum":"3edb0017dac555c9068627140537abaa5e731a82","tarball":"https://registry.npmjs.org/pbkdf2-password/-/pbkdf2-password-1.0.0.tgz","integrity":"sha512-q3jibO1ZorPumP6X2Kw5VO+YmLJkt3Ebl+41ORNioS/HPjim3rodAO9Ymh3yTShXrFpYKRe4L9pltFly8u/pLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHMBssxPA+IXioCxgccRDV4yACJ80O9wgZmISC+F0Pc+AiEAxzuc8hppV4n8eSK9Nv/ND0rIp9r8q8aemfX3lSb/G8M="}]}},"1.1.0":{"name":"pbkdf2-password","version":"1.1.0","description":"Easy salt/password creation for Node.js, extracted from Mosca","main":"pbkdf2-password.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git+https://github.com/mcollina/pbkdf2-password.git"},"keywords":["pbkdf2","authentication"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/pbkdf2-password/issues"},"homepage":"https://github.com/mcollina/pbkdf2-password","devDependencies":{"chai":"^1.10.0","mocha":"^2.1.0"},"dependencies":{"fastfall":"^1.2.3"},"gitHead":"302f15af0488a240b0d53516d89c7400f8e07b4c","_id":"pbkdf2-password@1.1.0","_shasum":"20d98650a7661560b475659a856c09580c9c678c","_from":".","_npmVersion":"2.11.1","_nodeVersion":"2.3.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"dist":{"shasum":"20d98650a7661560b475659a856c09580c9c678c","tarball":"https://registry.npmjs.org/pbkdf2-password/-/pbkdf2-password-1.1.0.tgz","integrity":"sha512-mPcs4qcS5cexPRjBlBkyAf9W0F453yPl8ZyRK4Vo1nl4UBNRsm7AP/NIUQaiC7Byb9hIxTAtxC0Wx10OT0Vimw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICw6jXUiUrmqIHA3yFmcBQT5yJZvllo+pWENOsCRYa/GAiBiLv69SMybcCK9emnhoCwoN4VQp0rX2E21OMowq8zM2g=="}]}},"1.2.0":{"name":"pbkdf2-password","version":"1.2.0","description":"Easy salt/password creation for Node.js, extracted from Mosca","main":"pbkdf2-password.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git+https://github.com/mcollina/pbkdf2-password.git"},"keywords":["pbkdf2","authentication"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/pbkdf2-password/issues"},"homepage":"https://github.com/mcollina/pbkdf2-password","devDependencies":{"chai":"^3.5.0","mocha":"^3.1.0"},"dependencies":{"fastfall":"^1.2.3"},"gitHead":"da01f1832c466042f0ed0aa8de8acad897b26933","_id":"pbkdf2-password@1.2.0","_shasum":"00cbe2106a0d92aeb269115aaa29b0dfa039332b","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"00cbe2106a0d92aeb269115aaa29b0dfa039332b","tarball":"https://registry.npmjs.org/pbkdf2-password/-/pbkdf2-password-1.2.0.tgz","integrity":"sha512-kLiFu2efFZP+Q2GnpixJTdBreUNBbcqoeva+WFoifCaeM44FR9c5QdyhAin9JkKfODANYYkG99ZUZaKdAHwVmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNg7RubKca91Z02HRn6pUPiHHw8X4YEJMY7Gjyz8mYAgIgP8achm6ktSNPVawc2XDKe8BUMoTIpyjhMu04ARwxkqs="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pbkdf2-password-1.2.0.tgz_1475150919083_0.02421634318307042"}},"1.2.1":{"name":"pbkdf2-password","version":"1.2.1","description":"Easy salt/password creation for Node.js, extracted from Mosca","main":"pbkdf2-password.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git+https://github.com/mcollina/pbkdf2-password.git"},"keywords":["pbkdf2","authentication"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/pbkdf2-password/issues"},"homepage":"https://github.com/mcollina/pbkdf2-password","devDependencies":{"chai":"^3.5.0","mocha":"^3.1.0"},"dependencies":{"fastfall":"^1.2.3"},"gitHead":"170c735be649e353c19da0ffc585c22dd6b34c5a","_id":"pbkdf2-password@1.2.1","_shasum":"9f74513a155fd38d4d6b5c8414d3955dd26ca6ee","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"9f74513a155fd38d4d6b5c8414d3955dd26ca6ee","tarball":"https://registry.npmjs.org/pbkdf2-password/-/pbkdf2-password-1.2.1.tgz","integrity":"sha512-I6ZiUi82uhYN47lOzi8P7O69e70LRopgS4TIkq0ecDAPHrlxABWOHxLEsTzCuogkxTofFJDj0eEbOALgrrxhKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTkG6z94gsWoJF5KEbVR7I+80RegG2TeipVCXQSLcyrgIhANFY0vJ0gQLSUdbvQclm7XvMw/ewTS2xHUQDgJnJ7Cix"}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pbkdf2-password-1.2.1.tgz_1475150963333_0.2858180277980864"}}},"readme":"# pbkdf2-password&nbsp;[![Build Status](https://travis-ci.org/mcollina/pbkdf2-password.svg?branch=master)](https://travis-ci.org/mcollina/pbkdf2-password)\n\nEasy salt/password creation for Node.js, extracted from\n[Mosca](http://npm.im/mosca).\n\nUsage\n-----\n\n```js\nvar bkfd2Password = require(\"pbkdf2-password\");\nvar hasher = bkfd2Password();\nvar assert = require(\"assert\");\nvar opts = {\n  password: \"helloworld\"\n};\n\nhasher(opts, function(err, pass, salt, hash) {\n  opts.salt = salt;\n  hasher(opts, function(err, pass, salt, hash2) {\n    assert.deepEqual(hash2, hash);\n\n    // password mismatch\n    opts.password = \"aaa\";\n    hasher(opts, function(err, pass, salt, hash2) {\n      assert.notDeepEqual(hash2, hash);\n      console.log(\"OK\");\n    });\n  });\n});\n```\n\nAPI\n---\n\n* <a href=\"#build\"><code>bkfd2Password<b></b></code></a>\n* <a href=\"#hasher\"><code><b>hasher()</b></code></a>\n\n<a name=\"build\">\n### bkfd2Password(options)\n\nCreates a new [hasher](#hasher) functions, with the specified options.\n\nOptions:\n\n * `saltLength`, the length of the random salt\n * `iterations`, number of pbkdf2 iterations\n * `keyLength`, the length of the generated keys\n * `digest`, the digest algorithm, default `'sha1'`\n\n<a name=\"hasher\">\n### hasher(opts, function(err, pass, salt, hash))\n\nHash a password, using a hash and the pbkd2\ncrypto module.\n\nOptions:\n - `password`, the password to hash.\n - `salt`, the salt to use, as a base64 string.\n\nIf the `password` is left undefined, a new\n10-bytes password will be generated, and converted\nto base64.\n\nIf the `salt` is left undefined, a new salt is generated.\n\nThe callback will be called with the following arguments:\n - the error, if something when wrong.\n - the password.\n - the salt, encoded in base64.\n - the hash, encoded in base64.\n\nLicense\n-------\n\nMIT\n","maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"time":{"modified":"2022-06-23T15:56:56.925Z","created":"2015-01-29T15:19:24.238Z","1.0.0":"2015-01-29T15:19:24.238Z","1.1.0":"2015-06-30T10:29:34.704Z","1.2.0":"2016-09-29T12:08:40.918Z","1.2.1":"2016-09-29T12:09:24.173Z"},"homepage":"https://github.com/mcollina/pbkdf2-password","keywords":["pbkdf2","authentication"],"repository":{"type":"git","url":"git+https://github.com/mcollina/pbkdf2-password.git"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"bugs":{"url":"https://github.com/mcollina/pbkdf2-password/issues"},"license":"MIT","readmeFilename":"README.md","users":{"jon_shen":true,"bumsuk":true,"bighwstyle":true}}