You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.5 KiB

  1. {
  2. "name": "buffer-equal-constant-time",
  3. "version": "1.0.1",
  4. "description": "Constant-time comparison of Buffers",
  5. "main": "index.js",
  6. "scripts": {
  7. "test": "mocha test.js"
  8. },
  9. "repository": {
  10. "type": "git",
  11. "url": "git+ssh://git@github.com/goinstant/buffer-equal-constant-time.git"
  12. },
  13. "keywords": [
  14. "buffer",
  15. "equal",
  16. "constant-time",
  17. "crypto"
  18. ],
  19. "author": {
  20. "name": "GoInstant Inc., a salesforce.com company"
  21. },
  22. "license": "BSD-3-Clause",
  23. "devDependencies": {
  24. "mocha": "~1.15.1"
  25. },
  26. "readme": "# buffer-equal-constant-time\n\nConstant-time `Buffer` comparison for node.js. Should work with browserify too.\n\n[![Build Status](https://travis-ci.org/goinstant/buffer-equal-constant-time.png?branch=master)](https://travis-ci.org/goinstant/buffer-equal-constant-time)\n\n```sh\n npm install buffer-equal-constant-time\n```\n\n# Usage\n\n```js\n var bufferEq = require('buffer-equal-constant-time');\n\n var a = new Buffer('asdf');\n var b = new Buffer('asdf');\n if (bufferEq(a,b)) {\n // the same!\n } else {\n // different in at least one byte!\n }\n```\n\nIf you'd like to install an `.equal()` method onto the node.js `Buffer` and\n`SlowBuffer` prototypes:\n\n```js\n require('buffer-equal-constant-time').install();\n\n var a = new Buffer('asdf');\n var b = new Buffer('asdf');\n if (a.equal(b)) {\n // the same!\n } else {\n // different in at least one byte!\n }\n```\n\nTo get rid of the installed `.equal()` method, call `.restore()`:\n\n```js\n require('buffer-equal-constant-time').restore();\n```\n\n# Legal\n\n© 2013 GoInstant Inc., a salesforce.com company\n\nLicensed under the BSD 3-clause license.\n",
  27. "readmeFilename": "README.md",
  28. "bugs": {
  29. "url": "https://github.com/goinstant/buffer-equal-constant-time/issues"
  30. },
  31. "_id": "buffer-equal-constant-time@1.0.1",
  32. "dist": {
  33. "shasum": "f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819",
  34. "tarball": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz"
  35. },
  36. "_from": "buffer-equal-constant-time@>=1.0.1 <2.0.0",
  37. "_npmVersion": "1.3.11",
  38. "_npmUser": {
  39. "name": "goinstant",
  40. "email": "support@goinstant.com"
  41. },
  42. "maintainers": [
  43. {
  44. "name": "goinstant",
  45. "email": "support@goinstant.com"
  46. }
  47. ],
  48. "directories": {},
  49. "_shasum": "f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819",
  50. "_resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
  51. "homepage": "https://github.com/goinstant/buffer-equal-constant-time#readme"
  52. }