{"_id":"mumba-hash","_rev":"76-cb2ce768b0d7da3b9d68ac33a21cf0cc","name":"mumba-hash","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"mumba-hash","version":"0.1.0","keywords":["hash"],"author":{"name":"Mumba Pty Ltd"},"license":"Apache-2.0","_id":"mumba-hash@0.1.0","maintainers":[{"name":"mumbacloud","email":"development@mumbacloud.com"}],"homepage":"https://gitlab.com/Mumba/node-hash#README","bugs":{"url":"https://gitlab.com/Mumba/node-hash/issues"},"dist":{"shasum":"b913af73fa53a167b6c3f7003da68e0e838ff3f2","tarball":"https://registry.npmjs.org/mumba-hash/-/mumba-hash-0.1.0.tgz","integrity":"sha512-I4RaBVIATZ5hYykEGj23qoKhZM8Xum/hLgFPYo5bb4SBTryfvjMq0Arh5yPMlsrefIvieCFmf6hSUJYsdN5R7A==","signatures":[{"sig":"MEUCIQDXmKRN7cWFAwaMJ2VB/sxs6avhHX7cgJNFFaLVmYv2jwIgcQyYnDuJ15ltJ39fKtWzMShG1BclLad5Dl82z0f1BYA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/src/index.js","_from":".","_shasum":"b913af73fa53a167b6c3f7003da68e0e838ff3f2","engines":{"node":">=0.12"},"gitHead":"b8c1db1d7fd6eade49584d0dd5fdb47178149741","scripts":{"test":"npm run clean && npm run compile && npm run test:unit","clean":"rm -Rf dist","cover":"npm run clean && npm run compile && node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -R spec test","patch":"npm test && npm version patch && npm publish && git push --follow-tags","compile":"tsc -p .","test:unit":"_mocha test --no-colors"},"typings":"dist/src/index","_npmUser":{"name":"mumbacloud","email":"development@mumbacloud.com"},"repository":{"url":"git+ssh://git@gitlab.com/Mumba/node-hash.git","type":"git"},"_npmVersion":"3.8.6","description":"Hashing with Promises.","directories":{},"_nodeVersion":"5.11.1","dependencies":{"bcryptjs":"^2.3.0"},"devDependencies":{"mocha":"^2.5.3","istanbul":"^0.4.4"},"_npmOperationalInternal":{"tmp":"tmp/mumba-hash-0.1.0.tgz_1470014261896_0.7919269648846239","host":"packages-12-west.internal.npmjs.com"}}},"time":{"created":"2016-08-01T01:17:42.118Z","modified":"2026-02-06T05:31:36.529Z","0.1.0":"2016-08-01T01:17:42.118Z"},"bugs":{"url":"https://gitlab.com/Mumba/node-hash/issues"},"author":{"name":"Mumba Pty Ltd"},"license":"Apache-2.0","homepage":"https://gitlab.com/Mumba/node-hash#README","keywords":["hash"],"repository":{"url":"git+ssh://git@gitlab.com/Mumba/node-hash.git","type":"git"},"description":"Hashing with Promises.","maintainers":[{"email":"infrastructure@mumba.cloud","name":"mumba.cloud"},{"email":"dennis.barba@mumbacloud.com","name":"dennis.barbamumba"},{"email":"arvin.domingo@mumbacloud.com","name":"arvin.domingo"},{"email":"joseph.martin@mumbacloud.com","name":"joseph.mumbacloud"}],"readme":"# Mumba Hash\n\nHashing with Promise support.\n\n## Installation\n\n```sh\n$ npm install --save mumba-hash\n```\n\n## Examples\n\nNormal usage:\n\n```js\nimport {Hash} from \"mumba-hash\";\n\nlet hash = new Hash();\n\n// Create a hash on \"foo\" with the default 5 iterations.\nhash.create('foo')\n\t.then(function (hash) {\n\t\t// This will give us a \"$2a$05...\" type of hash.\n\t\tconsole.log(hash);\n\t})\n\t.catch(console.error);\n```\n\nPHP compatible mode:\n\n```js\nlet hash = new Hash({ php: true });\n\n// Create a hash on \"foo\" with the default 5 iterations.\nhash.create('foo')\n\t.then(function (hash) {\n\t\t// This will give us a \"$2y$05...\" type of hash.\n\t\tconsole.log(hash);\n\t})\n\t.catch(console.error);\n```\n\nComparing hashes with submitted text (such as a passphrase):\n\n```js\nlet storedHash = '$2a$05$tpkxsCGs3DQAulwg8jMLm.2m6onpogPyISQUltka1LLUBgQ9EO1xG';\n\nhash.compare('foo', storedHash)\n\t.then(function (result) {\n\t\tconsole.log(result ? \"It's a match\" : \"This is not a match\";\n\t});\n```\n\n## Tests\n\nTo run the test suite, first install the dependencies, then run `npm test`:\n\n```sh\n$ npm install\n$ npm test\n```\n\n## People\n\nThe original author of _Mumba Hash_ is [Andrew Eddie](https://gitlab.com/u/aeddie.mumba).\n\n[List of all contributors](https://gitlab.com/Mumba/node-hash/graphs/master)\n\n## License\n\n[Apache 2.0](LICENSE.txt)\n\n* * *\n\n&copy; 2016 [Mumba Pty Ltd](http://www.mumba.cloud). All rights reserved.\n\n","readmeFilename":"README.md"}