{"name":"scmp","version":"2.0.0","description":"safe, constant-time comparison of Buffers","main":"index.js","scripts":{"test":"mocha","posttest":"matcha"},"repository":{"type":"git","url":"git://github.com/freewil/scmp.git"},"keywords":["safe-compare","compare","time-equivalent-comparison","time equivalent","constant-time","constant time"],"author":{"name":"Sean Lavine"},"license":"BSD-3-Clause","devDependencies":{"matcha":"^0.7.0","mocha":"^3.1.2","safe-buffer":"^5.0.1"},"dependencies":{},"gitHead":"50b92cd87ad2db9a79203c54a7e620ccdf107df6","bugs":{"url":"https://github.com/freewil/scmp/issues"},"homepage":"https://github.com/freewil/scmp#readme","_id":"scmp@2.0.0","_shasum":"247110ef22ccf897b13a3f0abddb52782393cd6a","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"freewil","email":"sean@eternalrise.com"},"dist":{"shasum":"247110ef22ccf897b13a3f0abddb52782393cd6a","tarball":"http://registry-npm.ywwl.com/scmp/download/scmp-2.0.0.tgz","integrity":"sha512-FaHoAk75AYhT+rnBmMpkvHSIcQma4OHzYXOhn1XXtgNomi0FTV8YEXYuh2EIdCg5IKMVyFbXeJT4Cn96+fzABg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAUUsA6s3dzSEFJ6bRP8r35nZOwxLlrhAfXnEIZhttywIhAOv41wNkBGu9u/ZYo5SB4UFPnjL2mqnYwp6fsZgZWbXd"}],"size":2954,"noattachment":false,"key":"/scmp/-/scmp-2.0.0.tgz"},"maintainers":[{"name":"freewil","email":"sean@eternalrise.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/scmp-2.0.0.tgz_1478393267044_0.5110368472523987"},"directories":{},"readme":"# scmp\n[![travis][travis-image]][travis-url]\n[![npm][npm-image]][npm-url]\n[![downloads][downloads-image]][downloads-url]\n\n[travis-image]: https://travis-ci.org/freewil/scmp.svg?branch=master\n[travis-url]: https://travis-ci.org/freewil/scmp\n\n[npm-image]: https://img.shields.io/npm/v/scmp.svg?style=flat\n[npm-url]: https://npmjs.org/package/scmp\n\n[downloads-image]: https://img.shields.io/npm/dm/scmp.svg?style=flat\n[downloads-url]: https://npmjs.org/package/scmp\n\nSafe, constant-time comparison of Buffers.\n\n## Install\n\n```\nnpm install scmp\n```\n\n## Why?\n\nTo minimize vulnerability against [timing attacks](http://codahale.com/a-lesson-in-timing-attacks/).\n\n## Example\n\n```js\nconst scmp = require('scmp');\nconst Buffer = require('safe-buffer').Buffer;\n\nconst hash      = Buffer.from('e727d1464ae12436e899a726da5b2f11d8381b26', 'hex');\nconst givenHash = Buffer.from('e727e1b80e448a213b392049888111e1779a52db', 'hex');\n\nif (scmp(hash, givenHash)) {\n  console.log('good hash');\n} else {\n  console.log('bad hash');\n}\n\n```\n","publish_time":1478393269078,"deprecated":"Just use Node.js's crypto.timingSafeEqual()","_cnpm_publish_time":1478393269078,"dist-tags":{"latest":"2.1.0"}}