{"name":"scmp","version":"0.0.3","description":"safe, constant-time string-comparison","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","devDependencies":{"mocha":"~1.13.0","matcha":"~0.4.0"},"bugs":{"url":"https://github.com/freewil/scmp/issues"},"homepage":"https://github.com/freewil/scmp","_id":"scmp@0.0.3","dist":{"shasum":"3648df2d7294641e7f78673ffc29681d9bad9073","tarball":"http://registry-npm.ywwl.com/scmp/download/scmp-0.0.3.tgz","integrity":"sha512-ya4sPuUOfcrJnfC+OUqTFgFVBEMOXMS1Xopn0wwIhxKwD4eveTwJoIUN9u1QHJ47nL29/m545dV8KqI92MlHPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAlZJiJN3+Lx0wmSkDUVNenHPQOEJPQLCanIavJkOXagAiEA9sJF3TiWOYKMB7DR+VbjREx2+f2aHE4YZc9mkZH0XPY="}],"size":1462,"noattachment":false,"key":"/scmp/-/scmp-0.0.3.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"freewil","email":"sean@eternalrise.com"},"maintainers":[{"name":"freewil","email":"sean@eternalrise.com"}],"directories":{},"deprecated":"scmp v2 uses improved core crypto comparison since Node v6.6.0","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":1395702241853,"_cnpm_publish_time":1395702241853,"dist-tags":{"latest":"2.1.0"}}