{"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":{"integrity":"sha512-moemC3ZKiTzH29nbFo3Iw8fbemWWod4vNs/WgKbQ54oEs6mE6XVlguxvinYjB+UmaE0PThgyED9fUkWvirT8hA==","shasum":"7f87fd2c5db88d8d46335a68f780f281641c8b22","tarball":"http://registry-npm.ywwl.com/siphash24/download/siphash24-1.3.1.tgz","fileCount":8,"unpackedSize":23899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOEYSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmruGA/+OMeM9oDpaY3hRRtqz6BOxeXP4h3sVaN8m3oihM75pzrbeOtV\r\n+gG4l7Vtgb6u+8k8Hg4vl60ta7wWFNgypK6e9HpuI7VAnOEiKVzc+DaF6oJz\r\nMYvGal+kqyqbSAL0xhLpzI73y2+cvvfAzUQqEFmHvD7FgQgeh4KTxUj+Ai5w\r\n73pmNyNC2qp3VFs8zz1SdX6h5uFPnMtgdPsW+jszBdBAr0sEeD1wGTcynX3n\r\nK+jsrhA1N0mdtjoLk/3TViGBhw358kJa8CZWzP3k6/gzG+gCc41i3sSuqwaL\r\nDMMZNS81ZAVtDCZIUR1TvEhFgzIbL0HqwrhyHH5fNWSO96Iuad/l7vUtW3pW\r\nIvHRNmVQflhZ/wm30Ch5P5HFH/8Wjoe1aDwWlfx3iL7kCNDc5+HANOhrPx1b\r\neqwAfFlUMtHYO710fhAnUp5BfnGPAGr1M/QjM/yfHWBTVSYv3xTuCp6opaoz\r\nz91OpVci0dxxmXKMlHbiMtxFE0IpTtnuMZtiEdkStuo74l379QU/wulEIWg+\r\nJq/X9uVNcs0EoL04PTykN9/s1/XQ1SMkq+N6NAMvclApep3Jv0fyUPaAdQW/\r\n6XVGGXPHPEb9KveIGNF88nA0dmC/J5UkZtCmURMZ+NIc/0rF89SoP30mLNUc\r\nij+STjNogoxeIFAaSEDuRQWqsRiHBSpcEsc=\r\n=TgaW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG/Jw6dMF+LgxI+c1LkTfVzEK56y04wSuQq2jaPbtgiJAiAUujjAPzHMgUF63Q20oXmHJPOKbBbOgzk+k4I/E8IWsw=="}],"size":5388,"noattachment":false,"key":"/siphash24/-/siphash24-1.3.1.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/siphash24_1.3.1_1647855122358_0.14578383820645846"},"_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":1647855122529,"_cnpm_publish_time":1647855122529,"dist-tags":{"latest":"1.3.1"}}