{"dist":{"shasum":"8f050a4d281bfb3844120bb50f36a757f8f8492d","tarball":"https://registry.npmjs.org/sha3/-/sha3-1.2.4.tgz","fileCount":29,"integrity":"sha512-X1XABKEIfQQrhm/Y8oG7cZLaRjRMEi1yvYWo/GGrDO1m02eJofr4l5WaJ1Cw4HEy+R2VLbU4NfYvh2oeva4bxg==","signatures":[{"sig":"MEUCIQDpIkllqmz7JFuj9JPj/w5FHTH8dcEdoNLOqKDbUGja8QIgcnzCff5LAdb5oui5Cs4vu6WteE1mt1CToym+Mr3pMpo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5473025,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5CKACRA9TVsSAnZWagAAK6cP/0r1KiZfiaYbN3HX1TYs\nL1dK0aa6FDmp+ScyHM0/VneP+/QQrKsumpW9aLnfLqchyfxzozBmf8/zGY2K\n5reUnIBM0GNKykECWQC70FEdCj7kCTeuRDQFomc6N6muP9oIJlKb/M+nFvrI\nTn6odYfewzm42jB9oJalrl2NuEvmJBymUb3HLTKFzJABjukm3kuV9kBYhoJ1\nt1YI2B19alu5xf1xw6FsIEhTPU3FSG8932Ps/7XiwEBphyIEBrmunO5qvg+q\nv3JaAHBfsTVYMnNJqcwAfVbz3qowx6o27U/zLPx3zyZpj3vtQAI2d82bo4V5\n6I6ZuMT3mYAtrnONcTsp+2AMwBxaCTJkQ+nTuQsUXfBPrYfUjWtc8vSe4zLA\ndAiOz3yvb+s0LSKmizLZMRXp4enxNr3BwrCrzywq4U6s0ylrCi0RT/JjLZ72\n7HPac0OJushG/PyQ+s9TxN3Teie8oZeaNwpJwTvS19giloca1wFaPiGtWHV5\n4m5A4nX01Yjx52qOim7wo7r/6Wr3je1PrnpOamZUCZ+fJ7IYDS6sxDnLIXn1\nVO/sL7NibeMQHVgzzZGjZG+0MQDRAWpGD6Q1VeNIannGbxR/YpPpbs8usKm6\nvQP/TDwVTKO8jfHsCBdLD+ENQnDWI8dyOenbIkiT3QHoPiW6olYD0H2WGXIo\nCI3K\r\n=jxsQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/Release/sha3","name":"sha3","author":{"url":"Phusion","name":"Hongli Lai","email":"hongli@phusion.nl"},"readme":"# A Node.js C++ extension for SHA-3 (Keccak)\n\n[![Travis CI][3]][4]\n[![npm version][5]][6]\n[![npm downloads][7]][6]\n[![dependencies][8]][9]\n[![devDependencies][10]][9]\n[![license][11]][12]\n\nThis Node.js extension implements the SHA-3 ([Keccak][1]) cryptographic hashing algorithm. It is based on the reference C implementation, version 3.2. The exposed interface is almost identical to that of the `crypto` standard library.\n\n[![Phusion][13]][2]\n\n## Installation\n\nVia `npm`:\n\n```bash\n$ npm install sha3\n```\n\nVia `yarn`:\n\n```bash\n$ yarn add sha3\n```\n\n## Usage\n\nKeccak supports 5 hash lengths: 224-bit, 256-bit, 384-bit, 512-bit and variable length. Variable length is not supported by this Node.js extension. Unless the user specifies otherwise, this Node.js extension assumes 512-bit.\n\n```javascript\nconst SHA3 = require('sha3');\n\n// Generate 512-bit digest.\nlet d = new SHA3.SHA3Hash();\nd.update('foo');\nd.digest('hex');\n// => \"1597842a...\"\n\n// Generate 224-bit digest.\nd = new SHA3.SHA3Hash(224);\nd.update('foo');\nd.digest('hex');\n// => \"daa94da7...\"\n```\n\n### new SHA3Hash([hashlen])\n\nThis is the hash object. `hashlen` is 512 by default.\n\n### hash.update(data, [input_encoding])\n\nUpdates the hash content with the given data, the encoding of which is given in `input_encoding` and can be `'utf8'`, `'ascii'` or `'binary'`. Defaults to `'binary'`. This can be called many times with new data as it is streamed.\n\n### hash.digest([encoding])\n\nCalculates the digest of all of the passed data to be hashed. The encoding can be `'hex'` or `'binary'`. Defaults to `'binary'`.\n\nNote: unlike `crypto.Hash`, a `SHA3Hash` object _can_ still be used after the `digest()` method been called.\n\n## Running the test suite\n\nRun the test suite as follows:\n\n```bash\n$ npm test\n```\n\nThe test suite is automatically generated from Keccak's reference test suite.\nIt requires that you have Python 2.7 installed and available via the\n`python` executable.\n\n## Warning\n\nDo not use SHA-3 for hashing passwords. Do not even use SHA-3 + salt for hashing passwords. Use a [slow hash][14] instead.\n\n## See also\n\n[Digest::SHA3 for Ruby](https://github.com/phusion/digest-sha3-ruby)\n\n[1]: https://keccak.team/keccak.html\n[2]: https://www.phusion.nl/\n[3]: https://img.shields.io/travis/phusion/node-sha3/master.svg?label=Travis%20CI\n[4]: https://travis-ci.org/phusion/node-sha3\n[5]: https://img.shields.io/npm/v/sha3.svg\n[6]: https://www.npmjs.com/package/sha3\n[7]: https://img.shields.io/npm/dt/sha3.svg\n[8]: https://img.shields.io/david/phusion/node-sha3.svg\n[9]: https://github.com/phusion/node-sha3/blob/master/package.json\n[10]: https://img.shields.io/david/dev/phusion/node-sha3.svg\n[11]: https://img.shields.io/github/license/phusion/node-sha3.svg\n[12]: https://github.com/phusion/node-sha3/blob/master/LICENSE\n[13]: https://www.phusion.nl/images/header/pinwheel_logo.svg\n[14]: http://codahale.com/how-to-safely-store-a-password/\n","gypfile":true,"license":"MIT","scripts":{"test":"python test/generate_tests.py > test/test_vectors.js && node test/test_vectors.js && mocha test/unit_tests.js","install":"node-gyp rebuild"},"_npmUser":{"name":"canterberry","email":"devin@canterberry.cc"},"keywords":["sha","sha3","sha-3","hash","hashing"],"repository":{"url":"git://github.com/phusion/node-sha3.git","type":"git"},"description":"A Node.js C++ extension for SHA-3 (Keccak)","directories":{},"licenseText":"Copyright 2012 Phusion\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","maintainers":[{"name":"canterberry","email":"devin@canterberry.cc"}],"dependencies":{"nan":"2.13.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"6.1.4"},"_npmOperationalInternal":{"tmp":"tmp/sha3_1.2.4_1575232127628_0.5663020099731451","host":"s3://npm-registry-packages"},"_id":"sha3@1.2.4","version":"1.2.4"}