{"name":"siphash24","version":"1.0.2","description":"SipHash (2-4) implemented in pure Javascript and WebAssembly","main":"index.js","dependencies":{"base64-to-uint8array":"^1.0.0","brfs":"^1.4.3","nanoassert":"^1.0.0"},"devDependencies":{"tape":"^4.6.3"},"browserify":{"transform":["brfs"]},"scripts":{"test":"node test.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":"1f69b1d52746b5400bfcfe859af6a74fbf5d11e7","_id":"siphash24@1.0.2","_npmVersion":"5.0.3","_nodeVersion":"8.1.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-/yUF5S4+z46QxpT/mW/wdlsQQTdO1yl3H36aql6u2m3Ve6u9iATS+yHN+rMXr4jm1qQ0wJUDK2ofdkZeQjMmig==","shasum":"bc792311b565dca634083e1ef11e25f0ac5f9007","tarball":"http://registry-npm.ywwl.com/siphash24/download/siphash24-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEW/LEwtzB692WL10buQ1ZckCy0k3YGQKOkymksj+RIcAiEAgTGWyTjPBHOgec9UyqsGVxCTyEpwVrCFB2L3hCpoJZQ="}],"size":4872,"noattachment":false,"key":"/siphash24/-/siphash24-1.0.2.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/siphash24-1.0.2.tgz_1497732028646_0.9997652599122375"},"directories":{},"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":1497732029632,"_cnpm_publish_time":1497732029632,"dist-tags":{"latest":"1.3.1"}}