{"_id":"scmp","_rev":"27-6dfeb194bbe243640a7cd92dbfea5789","name":"scmp","description":"safe, constant-time comparison of Buffers","dist-tags":{"latest":"2.1.0"},"versions":{"0.0.1":{"name":"scmp","version":"0.0.1","description":"time-equivalent string-comparison function","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/freewil/scmp.git"},"keywords":["safe-compare","compare","time-equivalent-comparison"],"author":{"name":"Sean Lavine"},"license":"BSD","devDependencies":{"mocha":"~1.8.1"},"_id":"scmp@0.0.1","dist":{"shasum":"a4dcd67aba6ba13f5217160c63c3a9023d530bfb","tarball":"https://registry.npmjs.org/scmp/-/scmp-0.0.1.tgz","integrity":"sha512-afQnxWqp1WaNfy6LMWxIqecP/KZ1+qgc4Sg0Jh9VSbekNGxzEZLX/ysucx1sor8+YSWBkSO/D3n9zpmVchKAfw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFgEPdewQ4xgxiXBpxx8kqbCi8d5PiIxjHXgNRMgUs7sAiBIQLCHCLSTvXajj7Ijs7PPUkoqMGTjUd3HdZEDfTq/XA=="}]},"_from":".","_npmVersion":"1.2.9","_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"},"0.0.2":{"name":"scmp","version":"0.0.2","description":"safe, constant-time string-comparison","main":"index.js","scripts":{"test":"mocha"},"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.8.1"},"_id":"scmp@0.0.2","dist":{"shasum":"1083b9a56caf20193c2c9d1da0692fda23a71407","tarball":"https://registry.npmjs.org/scmp/-/scmp-0.0.2.tgz","integrity":"sha512-k4cCvxebhKihyr/t8llzI3oBWsQ3Ouhf9Kvqk9TAKaGNvMUeDXqIkMrsCaZxO3Dp3CZ3ME3boMsEqi0REQozCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCknJAYQt69oZETAZIuXLlUFel2nA+1vJ6B4CPENBbC1AIhAJW7eZvoQu9IlL2g+p/eTORCCAQY8v3LJJy1yM7RCjAZ"}]},"_from":".","_npmVersion":"1.2.9","_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"},"0.0.3":{"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":"https://registry.npmjs.org/scmp/-/scmp-0.0.3.tgz","integrity":"sha512-ya4sPuUOfcrJnfC+OUqTFgFVBEMOXMS1Xopn0wwIhxKwD4eveTwJoIUN9u1QHJ47nL29/m545dV8KqI92MlHPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAlZJiJN3+Lx0wmSkDUVNenHPQOEJPQLCanIavJkOXagAiEA9sJF3TiWOYKMB7DR+VbjREx2+f2aHE4YZc9mkZH0XPY="}]},"_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"},"1.0.0":{"name":"scmp","version":"1.0.0","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"},"gitHead":"c8c37d3daed05ea20a761694680b13cb998c0557","bugs":{"url":"https://github.com/freewil/scmp/issues"},"homepage":"https://github.com/freewil/scmp","_id":"scmp@1.0.0","_shasum":"a0b272c3fc7292f77115646f00618b0262514e04","_from":".","_npmVersion":"1.4.27","_npmUser":{"name":"freewil","email":"sean@eternalrise.com"},"maintainers":[{"name":"freewil","email":"sean@eternalrise.com"}],"dist":{"shasum":"a0b272c3fc7292f77115646f00618b0262514e04","tarball":"https://registry.npmjs.org/scmp/-/scmp-1.0.0.tgz","integrity":"sha512-gCzsBFLpXrXnq60hYFV4hc4b5a3nIWTKtFWMYvlcXqs5gHKTR445CO3QbFRZW/O+9tRIVTeC46/MXbq1Se/1Sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID9KzPBDbCzSqroqmNFFad0dvUWpGg6wtnakHACkqAS9AiB7sDigK47h+XHgYc3CS0vgZ+DZoXsO4JPrVkuHIC19rQ=="}]},"directories":{},"deprecated":"scmp v2 uses improved core crypto comparison since Node v6.6.0"},"1.0.1":{"name":"scmp","version":"1.0.1","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-3-Clause","engines":{"node":"<6.6.0"},"devDependencies":{"matcha":"^0.7.0","mocha":"^3.1.2"},"gitHead":"a2883fd145f5cb716d65c212cdfa6660134a9226","bugs":{"url":"https://github.com/freewil/scmp/issues"},"homepage":"https://github.com/freewil/scmp#readme","_id":"scmp@1.0.1","_shasum":"7497deb3a42a3c38f92f074a816673132ea3c728","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"freewil","email":"sean@eternalrise.com"},"dist":{"shasum":"7497deb3a42a3c38f92f074a816673132ea3c728","tarball":"https://registry.npmjs.org/scmp/-/scmp-1.0.1.tgz","integrity":"sha512-VDkMj7EffgP+w5o8hmlHwsxHVW6PttyYwp6OfrvaDDBClJNYJ1dMMvhI+FBWrpnKxXmwRC3ahy8+pb3vlTToRw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1UIQzesEeTzigc3NNhbo86fvx0r4s3eD6Kb3JgyFLwwIgAUA0o1NbHVazEAbaw3pVpXaDrOZHi3u3Q+JMsObgyX0="}]},"maintainers":[{"name":"freewil","email":"sean@eternalrise.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/scmp-1.0.1.tgz_1478148670541_0.04821741511113942"},"directories":{},"deprecated":"scmp v2 uses improved core crypto comparison since Node v6.6.0"},"1.0.2":{"name":"scmp","version":"1.0.2","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-3-Clause","devDependencies":{"matcha":"^0.7.0","mocha":"^3.1.2"},"gitHead":"246bacad4f84fe4e0b0d16cd55d19684cffbaf5c","bugs":{"url":"https://github.com/freewil/scmp/issues"},"homepage":"https://github.com/freewil/scmp#readme","_id":"scmp@1.0.2","_shasum":"bc4e4e2713252b04210cdff9cef3ade2c8fa7370","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"freewil","email":"sean@eternalrise.com"},"dist":{"shasum":"bc4e4e2713252b04210cdff9cef3ade2c8fa7370","tarball":"https://registry.npmjs.org/scmp/-/scmp-1.0.2.tgz","integrity":"sha512-uHmFM8DscaWnm2lh7eC21BELzIpXBW/QnEzGvSRAdjt3CFq6hYOV2gIBnTOgay8FlNVV8B+ZZ6caMOgt3gIryw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCU8KsHX0HVAXnS1w0DSY4K0gxiTmKWB2o5/Lx7nzluWAIgBRAb/NJ8sankoH010hMHidboPpTQ+2y8nE0W2NLeKXA="}]},"maintainers":[{"name":"freewil","email":"sean@eternalrise.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/scmp-1.0.2.tgz_1478390700101_0.15123605611734092"},"directories":{},"deprecated":"scmp v2 uses improved core crypto comparison since Node v6.6.0"},"2.0.0":{"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":"https://registry.npmjs.org/scmp/-/scmp-2.0.0.tgz","integrity":"sha512-FaHoAk75AYhT+rnBmMpkvHSIcQma4OHzYXOhn1XXtgNomi0FTV8YEXYuh2EIdCg5IKMVyFbXeJT4Cn96+fzABg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAUUsA6s3dzSEFJ6bRP8r35nZOwxLlrhAfXnEIZhttywIhAOv41wNkBGu9u/ZYo5SB4UFPnjL2mqnYwp6fsZgZWbXd"}]},"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":{}},"2.1.0":{"name":"scmp","version":"2.1.0","description":"safe, constant-time comparison of Buffers","main":"index.js","scripts":{"pretest":"standard --verbose","test":"mocha","posttest":"node benchmark/benchmark.js && node benchmark/crypto-check.js"},"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":{"benchmark":"^2.1.4","mocha":"^6.2.0","safe-buffer":"^5.1.2","standard":"^14.3.1"},"dependencies":{},"gitHead":"be5d22baad3acdd0440eaf98d62c67dab6b04f27","bugs":{"url":"https://github.com/freewil/scmp/issues"},"homepage":"https://github.com/freewil/scmp#readme","_id":"scmp@2.1.0","_nodeVersion":"10.18.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-o/mRQGk9Rcer/jEEw/yw4mwo3EU/NvYvp577/Btqrym9Qy5/MdWGBqipbALgd2lrdWTJ5/gqDusxfnQBxOxT2Q==","shasum":"37b8e197c425bdeb570ab91cc356b311a11f9c9a","tarball":"https://registry.npmjs.org/scmp/-/scmp-2.1.0.tgz","fileCount":10,"unpackedSize":7926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeBQUzCRA9TVsSAnZWagAAQPUP/0ZwkfVzMQNHTO6S+tEo\n3lCDWbphcfMtgod5KTwSS/7j6i4ikEV8F/pArsCmjjPMGbHpw0ho9RnO04rg\nQ1o+B1xQS8ZB53N+LqasW9vWf6SRRhG7A+lvZk44Vss7scd4kFxglBRjdMZq\nhs7WS2h0OzpecVTeDoSmkDiDNUBcHT0BMbB8YPiV9jh2dbpSWQdxrVPYjz5S\ndkM4HAwVEvRyUUMBqgklKpx9qYjyaDD5BCQShJttCX0DgpMl3izkx8ovW15/\nOFccwadH3ybRWvmDgO2SdUn4qhnYvbQNYLY3byFMgPixxsKNjy1jq1E2kvbi\nItmivoYYMmfN/y7azzxRzNy9RdEC27A6z1fE3ARGcacMFFfBORZ084xhpM4V\njHU2hKsVPlkzvHRwfOjFmpwurIDp3riEpmKKEd0PPjvtPjJJys4cb41o+aY7\nvfisx6uKR0LosGG7mdKBbaneZjzFkPyLzJQUXonrT4aBJOlQtGHjwbFWMkNt\nASz75wdL/JPKoo5oX+hWYRAqTyhLT0hOMNfgcKXwCN4cUCYdpT+O/0+M3MxG\nzuB8dljoTmPTx/8mueoR8hQT3hGQgWd1lRDyQTNbYNzOiyB3P0YvUxf3y8ck\nneybPL7Dee2+2ZlDai0bvAqur9w72U7/9066Cn5BjBA32BISxjWl11pd5bSV\nBVZs\r\n=/X3N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBiG8c01vvtdzNHdcFOBVwZIhQTrDdR1u4MwThKPO1BgAiEA0O3pJ0uv7KzDEovVZTQFJac9vVfWj+iTvXg8lEHv1zM="}]},"maintainers":[{"name":"freewil","email":"sean@eternalrise.com"}],"_npmUser":{"name":"freewil","email":"lavis88@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scmp_2.1.0_1577387314748_0.12475921724071015"},"_hasShrinkwrap":false}},"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","maintainers":[{"name":"freewil","email":"sean@eternalrise.com"}],"time":{"modified":"2022-06-26T16:36:33.750Z","created":"2013-02-11T01:28:59.032Z","0.0.1":"2013-02-11T01:29:01.076Z","0.0.2":"2013-02-12T21:14:41.911Z","0.0.3":"2014-03-24T23:04:01.853Z","1.0.0":"2014-11-04T02:16:29.287Z","1.0.1":"2016-11-03T04:51:10.762Z","1.0.2":"2016-11-06T00:05:01.662Z","2.0.0":"2016-11-06T00:47:49.078Z","2.1.0":"2019-12-26T19:08:34.819Z"},"author":{"name":"Sean Lavine"},"repository":{"type":"git","url":"git://github.com/freewil/scmp.git"},"homepage":"https://github.com/freewil/scmp#readme","keywords":["safe-compare","compare","time-equivalent-comparison","time equivalent","constant-time","constant time"],"bugs":{"url":"https://github.com/freewil/scmp/issues"},"license":"BSD-3-Clause","readmeFilename":"README.md","users":{"jstash":true,"uwo":true,"x_soth":true,"iknew.today":true,"supabot":true}}