{"_id":"password-hash-and-salt","_rev":"19-bf05d4745f8cf0336e38be0923e003e2","name":"password-hash-and-salt","description":"Simple, safe and straight-forward password hashing / salting for node.js","dist-tags":{"latest":"0.1.4"},"versions":{"0.0.1":{"name":"password-hash-and-salt","version":"0.0.1","scripts":{"test":"grunt test"},"dependencies":{},"devDependencies":{"grunt":"~0.4.4","mocha":"~1.18.2","chai":"~1.9.1","grunt-mocha-test":"~0.10.2"},"description":"password-hash-and-salt ======================","_id":"password-hash-and-salt@0.0.1","_shasum":"3167377df816d4329a06e452c260f3441281e98f","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"florianheinemann","email":"florian.heinemann@gmail.com"},"maintainers":[{"name":"florianheinemann","email":"florian.heinemann@gmail.com"}],"dist":{"shasum":"3167377df816d4329a06e452c260f3441281e98f","tarball":"https://registry.npmjs.org/password-hash-and-salt/-/password-hash-and-salt-0.0.1.tgz","integrity":"sha512-NmQRBPfXB/rQThVX2Y87DN/7L7+UxygcdQ6KNgP6FyKHmnGsCKoCyEL/X0qcEDpSUO1NCCryWgvCmznxvJUmdQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9IIpr/X/Ghg4IFoPa8SqURqOj0s9JxwqEZ+RB6SzQbgIgU/j0felRaraW6UlJ3fk1GZt4oTTYO4SY+9JPYo1YWco="}]}},"0.1.1":{"name":"password-hash-and-salt","version":"0.1.1","scripts":{"test":"grunt test"},"dependencies":{},"devDependencies":{"grunt":"~0.4.4","mocha":"~1.18.2","chai":"~1.9.1","grunt-mocha-test":"~0.10.2"},"description":"password-hash-and-salt ======================","_id":"password-hash-and-salt@0.1.1","_shasum":"3841fa53bf2073a07d9eac6423768fe89642e6c7","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"florianheinemann","email":"florian.heinemann@gmail.com"},"maintainers":[{"name":"florianheinemann","email":"florian.heinemann@gmail.com"}],"dist":{"shasum":"3841fa53bf2073a07d9eac6423768fe89642e6c7","tarball":"https://registry.npmjs.org/password-hash-and-salt/-/password-hash-and-salt-0.1.1.tgz","integrity":"sha512-MyRXUVnGeb12Qn4F2sCsShE+ba/zq5he6j8ahpfj/ecBu6od/8jMqbMvPikScBwlBrnyQr7eTex/6Pjof25U/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJEn5OJDDLAAowxCX+y2FDH7jaDKJFT0kvj+hGl3WimAIgcjbSwDp8EW+oq9PDXVhdwBMNfy6+2wSJ2BFBJEQq438="}]}},"0.1.2":{"name":"password-hash-and-salt","version":"0.1.2","description":"Simple, safe and straight-forward password hashing / salting for node.js","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/florianheinemann/password-hash-and-salt.git"},"keywords":["crypto","node.js","node","hash","salt","password","pbkdf2"],"dependencies":{},"devDependencies":{"grunt":"~0.4.4","mocha":"~1.18.2","chai":"~1.9.1","grunt-mocha-test":"~0.10.2"},"author":{"name":"Florian Heinemann","email":"florian.heinemann@gmail.com","url":"http://twitter.com/florian__h"},"license":"MIT","bugs":{"url":"https://github.com/florianheinemann/password-hash-and-salt/issues"},"homepage":"https://github.com/florianheinemann/password-hash-and-salt","_id":"password-hash-and-salt@0.1.2","_shasum":"bc57cb611146602078ac8125ea25c87c8801a099","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"florianheinemann","email":"florian.heinemann@gmail.com"},"maintainers":[{"name":"florianheinemann","email":"florian.heinemann@gmail.com"}],"dist":{"shasum":"bc57cb611146602078ac8125ea25c87c8801a099","tarball":"https://registry.npmjs.org/password-hash-and-salt/-/password-hash-and-salt-0.1.2.tgz","integrity":"sha512-RHVe3XJN+0BA/hlU5nhgmSgCuxWYFvTETEhOmC6mMnMwbvSLDuEwzJ2/y1b+A0F2Oh/h3GZRsP9NJHl31spE0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCA4LmDRYkSH3BQUILCNofGdMLYsEtcp8aKC+QxILsLHAIhAJeFqtbl5FyhT/wkg0ZELiYPkEGw16kPb8EQk4hW+VLn"}]}},"0.1.3":{"name":"password-hash-and-salt","version":"0.1.3","description":"Simple, safe and straight-forward password hashing / salting for node.js","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/florianheinemann/password-hash-and-salt.git"},"keywords":["crypto","node.js","node","hash","salt","password","pbkdf2"],"dependencies":{},"devDependencies":{"grunt":"~0.4.4","mocha":"~1.18.2","chai":"~1.9.1","grunt-mocha-test":"~0.10.2"},"author":{"name":"Florian Heinemann","email":"florian.heinemann@gmail.com","url":"http://twitter.com/florian__h"},"license":"MIT","bugs":{"url":"https://github.com/florianheinemann/password-hash-and-salt/issues"},"homepage":"https://github.com/florianheinemann/password-hash-and-salt","gitHead":"f03fbf60e2dbefaf4a21d123111ea8dbd2c377fc","_id":"password-hash-and-salt@0.1.3","_shasum":"ba4b26df37b7ff24e57d6eb8711f931dc6edbe0b","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"florianheinemann","email":"florian.heinemann@gmail.com"},"dist":{"shasum":"ba4b26df37b7ff24e57d6eb8711f931dc6edbe0b","tarball":"https://registry.npmjs.org/password-hash-and-salt/-/password-hash-and-salt-0.1.3.tgz","integrity":"sha512-Vo05mvjstMQLSNKZ3BOfnrx3Ps+EqayP7BM80sh6PbkyEdfQ8HVMzByR8b78MGcOaLNMygCVvzANR2QGPTPsbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJTfBjB9icHbrJUaCePwzMzNrOfA07gO+7WFTCEQitaAIgEFU5h4gLN+kZtlbse736scPD2usZRTcAMQFi5TmVHRw="}]},"maintainers":[{"name":"florianheinemann","email":"florian.heinemann@gmail.com"}]},"0.1.4":{"name":"password-hash-and-salt","version":"0.1.4","description":"Simple, safe and straight-forward password hashing / salting for node.js","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/florianheinemann/password-hash-and-salt.git"},"keywords":["crypto","node.js","node","hash","salt","password","pbkdf2"],"dependencies":{},"devDependencies":{"grunt":"~0.4.4","mocha":"~1.18.2","chai":"~1.9.1","grunt-mocha-test":"~0.10.2"},"author":{"name":"Florian Heinemann","email":"florian.heinemann@gmail.com","url":"http://twitter.com/florian__h"},"license":"MIT","bugs":{"url":"https://github.com/florianheinemann/password-hash-and-salt/issues"},"homepage":"https://github.com/florianheinemann/password-hash-and-salt","gitHead":"10ccb8c76197fb272d16dddda0bd8db100ac6fd1","_id":"password-hash-and-salt@0.1.4","_shasum":"fb87be179b42b08e4931d888391395238df180b4","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"florianheinemann","email":"florian.heinemann@gmail.com"},"dist":{"shasum":"fb87be179b42b08e4931d888391395238df180b4","tarball":"https://registry.npmjs.org/password-hash-and-salt/-/password-hash-and-salt-0.1.4.tgz","integrity":"sha512-X5X46sBWFg2sSqRYChwe6cVrFyhAUUTLHvmaeicmQ0xYBDPgRr9PdvTK1Ue5AZUMIrGjyHXBerch/zO58eYW3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIBOx2AJWI2kx5AVNUhZ5gIDq6aizBisnAyAC+kd7bzAIgDBcNizqGMIqK6FyVwazXR6jGl2eYZATT+ycRAuyUe6g="}]},"maintainers":[{"name":"florianheinemann","email":"florian.heinemann@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/password-hash-and-salt-0.1.4.tgz_1474401340639_0.985871045384556"}}},"readme":"password-hash-and-salt\n======================\n\nThis module provides straight-forward password hashing for node.js applications using default settings considered to be safe.\n\n### Usage\n\nFirst, install the module:\n\n`$ npm install password-hash-and-salt --save`\n\nAfterwards, usage is as simple as shown in the following example:\n```javascript\nvar password = require('password-hash-and-salt');\n\nvar myuser = [];\n\n// Creating hash and salt\npassword('mysecret').hash(function(error, hash) {\n\tif(error)\n\t\tthrow new Error('Something went wrong!');\n\n\t// Store hash (incl. algorithm, iterations, and salt)\n\tmyuser.hash = hash;\n\n\t// Verifying a hash\n\tpassword('hack').verifyAgainst(myuser.hash, function(error, verified) {\n\t\tif(error)\n\t\t\tthrow new Error('Something went wrong!');\n\t\tif(!verified) {\n\t\t\tconsole.log(\"Don't try! We got you!\");\n\t\t} else {\n\t\t\tconsole.log(\"The secret is...\");\n\t\t}\n\t});\n})\n\n```\n\n### Crypto\npassword-hash-and-salt uses node.js' internal crypto module. Hashes are generated with pbkdf2 using 10,000 iterations.\n\n### Created hash\nThe created hash is of 270 characters length and is of the following format:\n`pbkdf2$10000$hash$salt`\n\nThis allows for future upgrades of the algorithm and/or increased number of iterations in future version. It also simplifies storage as no dedicated database field for the salt is required.\n\n### Credits and License\nexpress-sslify is licensed under the MIT license. If you'd like to be informed about new projects follow   [@TheSumOfAll](http://twitter.com/TheSumOfAll/).\n\nCopyright (c) 2013-2014 Florian Heinemann\n","maintainers":[{"name":"florianheinemann","email":"florian.heinemann@gmail.com"}],"time":{"modified":"2022-06-23T13:59:05.846Z","created":"2014-05-02T14:54:30.999Z","0.0.1":"2014-05-02T14:54:30.999Z","0.1.1":"2014-05-02T20:24:53.307Z","0.1.2":"2014-05-02T20:34:10.359Z","0.1.3":"2015-11-05T21:25:49.188Z","0.1.4":"2016-09-20T19:55:42.303Z"},"readmeFilename":"README.md","homepage":"https://github.com/florianheinemann/password-hash-and-salt","keywords":["crypto","node.js","node","hash","salt","password","pbkdf2"],"repository":{"type":"git","url":"git+https://github.com/florianheinemann/password-hash-and-salt.git"},"author":{"name":"Florian Heinemann","email":"florian.heinemann@gmail.com","url":"http://twitter.com/florian__h"},"bugs":{"url":"https://github.com/florianheinemann/password-hash-and-salt/issues"},"license":"MIT","users":{"genovo":true,"nepoxx":true,"keithmcfly":true,"jakewlacey":true,"ledakis":true,"fengbeijing":true,"rubenjose75":true}}