{"name":"siphash24","version":"1.0.1","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"},"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":"7285fcf4e0a8aea13a3c4616e433d71821a818a4","_id":"siphash24@1.0.1","_npmVersion":"5.0.3","_nodeVersion":"8.1.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-jvnaIMdphdYIlniZI0oLW5BAOtr0wE51/mchhMwUP94IzIKMIjjO4TJQNakwxAbGBosuiBORsfmbeYArgZrVpA==","shasum":"0a35894158d16a772887631636a6dff5ad4ba5bd","tarball":"http://registry-npm.ywwl.com/siphash24/download/siphash24-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAeb0apMKoIJf2majE51Bb+sWpE8GEt8RkzOR7r/R1WAIgfUVnPn28Vn8K+amlvDSuhAyDq6l0b+XD0xsj04ETIZg="}],"size":4845,"noattachment":false,"key":"/siphash24/-/siphash24-1.0.1.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/siphash24-1.0.1.tgz_1497257851238_0.5399880383629352"},"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":1497257852193,"_cnpm_publish_time":1497257852193,"dist-tags":{"latest":"1.3.1"}}