{"name":"siphash24","version":"1.1.1","description":"SipHash (2-4) implemented in pure Javascript and WebAssembly","main":"index.js","dependencies":{"nanoassert":"^1.0.0"},"devDependencies":{"tape":"^4.6.3","wat2js":"^1.1.1"},"scripts":{"test":"node test.js","compile":"wat2js siphash24.wat -o siphash24.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/siphash24.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/siphash24/issues"},"homepage":"https://github.com/mafintosh/siphash24","gitHead":"d7b9022be8dbbb00e55df581cd5ee7e389a72ece","_id":"siphash24@1.1.1","_npmVersion":"6.1.0","_nodeVersion":"10.3.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-dKKwjIoTOa587TARYLlBRXq2lkbu5Iz35XrEVWpelhBP1m8r2BGOy1QlaZe84GTFHG/BTucEUd2btnNc8QzIVA==","shasum":"94ad021a2b2c62de381b546ee02df0cf778acd50","tarball":"http://registry-npm.ywwl.com/siphash24/download/siphash24-1.1.1.tgz","fileCount":8,"unpackedSize":23967,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbFmqxCRA9TVsSAnZWagAAjnUP/0WYR7q62FzXi/UVkAQ7\nMQX3n/+rIRkTXsbRBEiLGql8gHISzrnSRlhsx2MTPbk+uh+ui4BlzL6/FidU\nuCURxHdZWpyqtBuEa+lDERkATtgr0tNHIhRra2ADc/ke2IBAHl1UQh99xyRY\nee8FpUlxMnTnHu8RymKasaSTSpG7Vr6NkUNAav0RfQ7ZEhB1bAMbz/61Ny2D\nDDv4X8UOpilFoeXZGJcJD7svSc7DRApmUPeteCwlfVNeJj7I2bvyTGLBHVlF\nDg+sRP0mWh5UQMnIJz0pxY3nqzdYRn52VtGcKF6BkP2UxyX96RXmeGHEbSFo\nh/LwLeZxR4AMfQNAaRVl04lYl5tAo/P9ZdIcC134dK9HrIZei210MnnVag3v\ndnTggAb8Lm2RQ1eJ8BoNwq2MHnSe/jnq1+HImPRkr73x/vc089VQBT0lM5GI\nQE+CsyRh4SJKRg9xV+0tQLi59K+kLZ7aWzM6ckmN2m8XmAFUEA1vu1CsAU50\nVUVVE1AzvDc8O9VY7zYrwdVGwJiFbk7zR7xpQSh140BQ/Ee6UsICE+TFiN76\nm5EVexamUCtfUDdD2xvdL0rPfmZb9J65J08KDNDkOyS7OeEDUFkcn61CC341\n3Uxq6l/SA/2GUJjyHqN5UOpW4+HYxnUSFBIJaYCtLHwR0DqIeG4pjC+Mneuw\nvXcq\r\n=+39b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHz+FysqjqGf16dGji9mUdFPj+NXJfFcpk5/sbOrOxIEAiAS7CBD6l14eOEK/B+zmBY0rgur5ABhm3j4sYsbVplXVQ=="}],"size":5341,"noattachment":false,"key":"/siphash24/-/siphash24-1.1.1.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/siphash24_1.1.1_1528195761137_0.35555311334007267"},"_hasShrinkwrap":false,"readme":"# siphash24\n\n[SipHash](https://en.wikipedia.org/wiki/SipHash) (2-4) implemented in pure Javascript and WebAssembly.\n\n```\nnpm install siphash24\n```\n\nThe Javascript fallback is adapted from [https://github.com/jedisct1/siphash-js](https://github.com/jedisct1/siphash-js) to support Uint8Arrays\nand the (fast!) WebAssembly implementation is hand written.\n\nWhen using the WASM implementation this module is almost as fast as the C version (around 10% slower on my laptop).\n\n## Usage\n\n``` js\nvar siphash24 = require('siphash24')\nvar hash = siphash24(Buffer.from('hello world'), Buffer.from('012345678012345678'))\n\nconsole.log(hash, 'hash of \"hello world\" as a uint8array')\n```\n\n## API\n\n#### `var hash = siphash24(input, key, [hash])`\n\nHash a Uint8Array/buffer using siphash24.\n\n* `key` should be a Uint8Array/buffer that is `siphash24.KEYBYTES` long\n* `hash` can to be optionally passed as the output buffer and should be `siphash24.BYTES` long.\n\nReturns the hash as a Uint8Array.\n\n#### `siphash24.WASM_SUPPORTED`\n\nBoolean informing you if your runtime supports WASM.\n\n#### `siphash24.WASM_LOADED`\n\nBoolean informing you if the WASM implementation has been loaded.\n\n## License\n\nMIT\n","publish_time":1528195761227,"_cnpm_publish_time":1528195761227,"dist-tags":{"latest":"1.3.1"}}