{"_id":"siphash24","_rev":"237794","name":"siphash24","description":"SipHash (2-4) implemented in pure Javascript and WebAssembly","dist-tags":{"latest":"1.3.1"},"maintainers":[{"name":"mafintosh","email":""}],"time":{"modified":"2023-03-24T16:41:21.000Z","created":"2017-06-12T08:55:46.001Z","1.3.1":"2022-03-21T09:32:02.529Z","1.3.0":"2021-11-22T11:30:32.762Z","1.2.0":"2021-05-25T07:38:02.737Z","1.1.1":"2018-06-05T10:49:21.227Z","1.1.0":"2017-11-16T23:38:50.367Z","1.0.2":"2017-06-17T20:40:29.632Z","1.0.1":"2017-06-12T08:57:32.193Z","1.0.0":"2017-06-12T08:55:46.001Z"},"users":{},"author":{"name":"Mathias Buus","url":"@mafintosh"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/siphash24.git"},"versions":{"1.3.1":{"name":"siphash24","version":"1.3.1","description":"SipHash (2-4) implemented in pure Javascript and WebAssembly","main":"index.js","dependencies":{"nanoassert":"^2.0.0"},"devDependencies":{"tape":"^5.2.2","wasm-tools":"^0.2.0"},"scripts":{"test":"node test.js","compile":"wasm-to-js -sf cjs siphash24.wat > 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":"292bd8ba00a068b40e37937bca419d13df03ef21","_id":"siphash24@1.3.1","_nodeVersion":"16.13.2","_npmVersion":"6.14.16","dist":{"shasum":"7f87fd2c5db88d8d46335a68f780f281641c8b22","size":5388,"noattachment":false,"key":"/siphash24/-/siphash24-1.3.1.tgz","tarball":"http://name.csiicloud.com:7001/siphash24/download/siphash24-1.3.1.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/siphash24_1.3.1_1647855122358_0.14578383820645846"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-21T09:32:58.103Z","publish_time":1647855122529,"_cnpm_publish_time":1647855122529},"1.3.0":{"name":"siphash24","version":"1.3.0","description":"SipHash (2-4) implemented in pure Javascript and WebAssembly","main":"index.js","dependencies":{"nanoassert":"^2.0.0"},"devDependencies":{"tape":"^5.2.2","wasm-tools":"^0.2.0"},"scripts":{"test":"node test.js","compile":"wasm-to-js -sf cjs siphash24.wat > 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":"39b7222b3da2d61c4f42ffe529743a6b98d4b8e6","_id":"siphash24@1.3.0","_nodeVersion":"16.8.0","_npmVersion":"6.14.15","dist":{"shasum":"ad5187cce49c0c3a2537a39a3242b06839df270e","size":5379,"noattachment":false,"key":"/siphash24/-/siphash24-1.3.0.tgz","tarball":"http://name.csiicloud.com:7001/siphash24/download/siphash24-1.3.0.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/siphash24_1.3.0_1637580632636_0.3805678688956098"},"_hasShrinkwrap":false,"publish_time":1637580632762,"_cnpm_publish_time":1637580632762,"_cnpmcore_publish_time":"2021-12-16T21:24:54.833Z"},"1.2.0":{"name":"siphash24","version":"1.2.0","description":"SipHash (2-4) implemented in pure Javascript and WebAssembly","main":"index.js","dependencies":{"nanoassert":"^2.0.0"},"devDependencies":{"tape":"^5.2.2","wat2js":"^2.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":"2393eef11d73919607aa3962161d40e9accd784f","_id":"siphash24@1.2.0","_nodeVersion":"16.1.0","_npmVersion":"6.14.13","dist":{"shasum":"336fae17d3c11a4e46a71b0ff6052e8fd5de3ecc","size":5319,"noattachment":false,"key":"/siphash24/-/siphash24-1.2.0.tgz","tarball":"http://name.csiicloud.com:7001/siphash24/download/siphash24-1.2.0.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/siphash24_1.2.0_1621928282504_0.15716267723194233"},"_hasShrinkwrap":false,"publish_time":1621928282737,"_cnpm_publish_time":1621928282737,"_cnpmcore_publish_time":"2021-12-16T21:24:55.139Z"},"1.1.1":{"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":{"shasum":"94ad021a2b2c62de381b546ee02df0cf778acd50","size":5341,"noattachment":false,"key":"/siphash24/-/siphash24-1.1.1.tgz","tarball":"http://name.csiicloud.com:7001/siphash24/download/siphash24-1.1.1.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/siphash24_1.1.1_1528195761137_0.35555311334007267"},"_hasShrinkwrap":false,"publish_time":1528195761227,"_cnpm_publish_time":1528195761227,"_cnpmcore_publish_time":"2021-12-16T21:24:55.346Z"},"1.1.0":{"name":"siphash24","version":"1.1.0","description":"SipHash (2-4) implemented in pure Javascript and WebAssembly","main":"index.js","dependencies":{"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":"21cfc35668fc84239f0bef661d00b940af1d0dd3","_id":"siphash24@1.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"24d3c812d164f1b34689ddcd333b6920f1efb256","size":5360,"noattachment":false,"key":"/siphash24/-/siphash24-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/siphash24/download/siphash24-1.1.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/siphash24-1.1.0.tgz_1510875529426_0.10747072705999017"},"directories":{},"publish_time":1510875530367,"_hasShrinkwrap":false,"_cnpm_publish_time":1510875530367,"_cnpmcore_publish_time":"2021-12-16T21:24:55.555Z"},"1.0.2":{"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":{"shasum":"bc792311b565dca634083e1ef11e25f0ac5f9007","size":4872,"noattachment":false,"key":"/siphash24/-/siphash24-1.0.2.tgz","tarball":"http://name.csiicloud.com:7001/siphash24/download/siphash24-1.0.2.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/siphash24-1.0.2.tgz_1497732028646_0.9997652599122375"},"directories":{},"publish_time":1497732029632,"_hasShrinkwrap":false,"_cnpm_publish_time":1497732029632,"_cnpmcore_publish_time":"2021-12-16T21:24:55.771Z"},"1.0.1":{"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":{"shasum":"0a35894158d16a772887631636a6dff5ad4ba5bd","size":4845,"noattachment":false,"key":"/siphash24/-/siphash24-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/siphash24/download/siphash24-1.0.1.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/siphash24-1.0.1.tgz_1497257851238_0.5399880383629352"},"directories":{},"publish_time":1497257852193,"_hasShrinkwrap":false,"_cnpm_publish_time":1497257852193,"_cnpmcore_publish_time":"2021-12-16T21:24:56.008Z"},"1.0.0":{"name":"siphash24","version":"1.0.0","description":"WIP - nothing to see here","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":"67f2c395487fa3bc80a42d0ccae0714c141adfaf","_id":"siphash24@1.0.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"3464168afd3313f387a5688da1c5ece484416d67","size":4859,"noattachment":false,"key":"/siphash24/-/siphash24-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/siphash24/download/siphash24-1.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/siphash24-1.0.0.tgz_1497257744942_0.04322554310783744"},"directories":{},"publish_time":1497257746001,"_hasShrinkwrap":false,"_cnpm_publish_time":1497257746001,"_cnpmcore_publish_time":"2021-12-16T21:24:56.276Z"}},"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","_attachments":{},"homepage":"https://github.com/mafintosh/siphash24","bugs":{"url":"https://github.com/mafintosh/siphash24/issues"},"license":"MIT"}