{"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":{"integrity":"sha512-2HvNPUYcmoFks2IX2wI5D80NspdlgSJlCmPencbBMWhrZnNW3sgiC7owaB2Jj/9IiV9bdN2A00LaM8IcojB8rw==","shasum":"ad5187cce49c0c3a2537a39a3242b06839df270e","tarball":"http://registry-npm.ywwl.com/siphash24/download/siphash24-1.3.0.tgz","fileCount":8,"unpackedSize":23888,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhm39YCRA9TVsSAnZWagAA+AMP/RPh5lEFs6b8dA4YGwdX\nEE11IMj3BlLWx4df17BOJ6r81K3yD2BjxD5D0fz0QyTznJeTPYs8vWvsnM93\nsawv/74l4bvPoGUUx5S4C8Ro8cpFJrdS4ki4eRNgfn7c2SQMCTkL/2sGVTJy\nj9YsH5e6CTLuPChAFwLH4dsJYRPhCcfxontijS87000VIKIelXmkT+5EH4NI\nYrvrjCpIlIGhHqnHvsE+oHRhiS/HB2ySG6Ep6CdMG0IY312KHu6iHu7wvcD7\n9TKvTL60GdjXaktalSOUit1mqtXUI60upK1wFDbamKZFann1hUNBMTxAuRMl\n0STLFE+s5G9N3U/Dxro5ole8dF4qjOD6ivwLGs0uoq55xu8W5buljFyC2/sO\n7G4fhroTKUHcCA/t1uDFgO2dJ0CylIMPaNrFvgHlhI8feincgo/MNPZWSao4\nhUhO2TkvttWed7eQN9b3svPMpjMtJ04r/xJySpt/rLMaUBduTqolAN3SGjSZ\nhO3bbCdqgjkCs4KbIQy+xS8JPn2Bws4vBUBJ0ZA/PZQJFRp0cg1MdSom6ATU\nCcYbEHpyo3VBdKUN76VoOWS50O+7bQhAm3xiPpKZxGbCrBbZEbz3D7gCvPQm\nJnYQLPYZGpP4tr3mFE1tOJsr8Ooinq6iW8ZdES9pOH45HtL2egAQGxYWv0UT\n5udS\r\n=ijdx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID9AonEPXPLRizd2kcrpdrGuOnsWcT9LSVkgNjlJdZAeAiEA6iOMOMc4sHBD/wI+8Lil08nJu8Edk1LxiTUyGEDr1B4="}],"size":5379,"noattachment":false,"key":"/siphash24/-/siphash24-1.3.0.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.0_1637580632636_0.3805678688956098"},"_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":1637580632762,"_cnpm_publish_time":1637580632762,"dist-tags":{"latest":"1.3.1"}}