{"_id":"siphash","_rev":"13-1402d0d19f11973727691a8fe1cb1f96","name":"siphash","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"siphash","version":"1.0.0","keywords":["prf","hash","crypto"],"author":{"name":"Frank Denis","email":"j at pureftpd dot org"},"license":"Public Domain","_id":"siphash@1.0.0","maintainers":[{"name":"jedisct1","email":"npm@pureftpd.org"}],"homepage":"https://github.com/jedisct1/siphash-js","bugs":{"url":"https://github.com/jedisct1/siphash-js/issues"},"dist":{"shasum":"e50fefef39b9614358f36410ece5fb2986457cb5","tarball":"https://registry.npmjs.org/siphash/-/siphash-1.0.0.tgz","integrity":"sha512-EB9irYCDjkSRzq4uF+duM8ld/Ik82dVJHCCn+Y1cCS2zhoXF2ZSYIug2rFiuKHiO45wKB74Kd+gp9ZkNk4lVkQ==","signatures":[{"sig":"MEUCIBdQecnH5dkbTUCXRXp4Wsa1vn+4uxC2+ompYePVIf1HAiEArlMJgCb6TK3bHnryVRzHGyk84XUymTssMre3LChO5j0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","scripts":{"test":"node test/index.js"},"repository":{"url":"https://github.com/jedisct1/siphash-js.git","type":"git"},"description":"SipHash-2-4 fast short-input pseudo-random function","directories":{}},"1.0.1":{"name":"siphash","version":"1.0.1","keywords":["prf","hash","crypto"],"author":{"name":"Frank Denis","email":"j at pureftpd dot org"},"license":"Public Domain","_id":"siphash@1.0.1","maintainers":[{"name":"jedisct1","email":"npm@pureftpd.org"}],"homepage":"https://github.com/jedisct1/siphash-js","bugs":{"url":"https://github.com/jedisct1/siphash-js/issues"},"dist":{"shasum":"6f529583234a7a10481afc574f9e20517a356269","tarball":"https://registry.npmjs.org/siphash/-/siphash-1.0.1.tgz","integrity":"sha512-yqtxmcn29nPxiz8lKvZf0fDwyR9ZErMALujHJcrlGKDPY5ECyTHaV+HczW5wQDiFxsXUXLudF9jE0GtNaBboFg==","signatures":[{"sig":"MEUCIQCh4WPsDXEv86oatYN2uzGtqPesuKzqT1FXUaaGpGYidgIgbpq+fBZ3PNlGV7HI5hXsnzxU9p5fLpdvt8hVQrdZc+o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"node test/index.js"},"_npmUser":{"name":"jedisct1","email":"npm@pureftpd.org"},"repository":{"url":"https://github.com/jedisct1/siphash-js.git","type":"git"},"_npmVersion":"1.2.15","description":"SipHash-2-4 fast short-input pseudo-random function","directories":{}},"1.0.3":{"name":"siphash","version":"1.0.3","keywords":["prf","hash","crypto"],"author":{"name":"Frank Denis","email":"j at pureftpd dot org"},"license":"BSD-2-Clause","_id":"siphash@1.0.3","maintainers":[{"name":"jedisct1","email":"npm@pureftpd.org"}],"homepage":"https://github.com/jedisct1/siphash-js","bugs":{"url":"https://github.com/jedisct1/siphash-js/issues"},"dist":{"shasum":"7fb4e3f7986168a01722a7788eb5110f6268498e","tarball":"https://registry.npmjs.org/siphash/-/siphash-1.0.3.tgz","integrity":"sha512-p09NsQxMhD/rOxJXwOERWU9gh71pkIsFRzfJXSn2qqS/yc0cVs56E//pMKD0ZooZSvpJBZg195CyVN9oLczS2A==","signatures":[{"sig":"MEUCIHtnMSDo5M4fmPTernhzkgEZ7YqhBoRWO5E2is5VPcjdAiEAgHqu6yZFmhb5T/PtmRt8MeHe+WBwH3UA9b4DLfZBXU8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"7fb4e3f7986168a01722a7788eb5110f6268498e","gitHead":"227d4a3523d04432aa55778330e331962bb49536","scripts":{"test":"node test/index.js"},"_npmUser":{"name":"jedisct1","email":"npm@pureftpd.org"},"repository":{"url":"git+https://github.com/jedisct1/siphash-js.git","type":"git"},"_npmVersion":"3.10.9","description":"SipHash-2-4 fast short-input pseudo-random function","directories":{},"_nodeVersion":"7.2.1","_npmOperationalInternal":{"tmp":"tmp/siphash-1.0.3.tgz_1481554615557_0.3214608917478472","host":"packages-12-west.internal.npmjs.com"}},"1.1.0":{"name":"siphash","version":"1.1.0","keywords":["prf","hash","crypto"],"author":{"name":"Frank Denis","email":"j at pureftpd dot org"},"license":"BSD-2-Clause","_id":"siphash@1.1.0","maintainers":[{"name":"jedisct1","email":"npm@pureftpd.org"}],"homepage":"https://github.com/jedisct1/siphash-js","bugs":{"url":"https://github.com/jedisct1/siphash-js/issues"},"dist":{"shasum":"b9e7a9acee92c07cf90ae69d2e8e90b11e2b3f3a","tarball":"https://registry.npmjs.org/siphash/-/siphash-1.1.0.tgz","fileCount":21,"integrity":"sha512-QXQOIeN7Lq1uAVfppZukylZ2tAGedZ49Xpu39Zfyb6JJqVFrP7GfbVc7kxTAyoHGi3/c0y7yIG6lmSwxapEKqA==","signatures":[{"sig":"MEQCIEaZc7su1g1cn2kQK7Y20EHZuwWWkHw7w4kqXiRkwQsmAiB0pqVSL8HphMS8Obm9huINZ0nenLRUMO6SVpWYL81Ilg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcwbePCRA9TVsSAnZWagAAiZEP+wZDJGx7sl1jbXK9S2ZT\nLnjjcIAu1/9wj9OkyH0H++pHTD/2GhCavwsA4HfswoWb/bHQOrGttkfCpyi5\nOPWp2crcAaRuUD0iSjf+WsHN+V2zaY0Lsx+DRjC/I9LxqNaRxj7RIRfD5Ok6\nELaIWwoPR40+su93SUDQKSJHdGjCEVLisfYWnDV13jZglA8Lq81D4ZIuhq8F\n1p7MEIsqfsn5JTCnvZuRrQLxHRRhMCgzofv6uTL6iM7ejxGHMyjdZxDsrKkl\nThFQDNmvnsVAhXXUXgqegNRLPvoI9mtIFVHAO/w/iadh/FOdm8qsYhpRNjtz\n3So8gBb5H4MlVhJWNQBDEJ9rjjnHYMaW2WrOJvtnAEBX9dqfWMHzj3g+/xy3\nrLgc6qRgonpJmVDJs0JrLCDHv6pMwSk8kojQeSCJ1kS3xQp1rUQ6uwZyEkTZ\nC477pIRX2XJV7eZT+lSCHg4Q/LaVL01SQFBgTiS7MZAkwwsbvnIS6DQjOa35\nO3Qqrn/sM9p2Sku3NLUQRG1cFyGSB9AutMDFMkh+0AatKjnJaBnZTPHekxer\nwjpcqrRDus8db8+k9sCM2DCNY8+x1312KlGFhI7qm6yZZMKZ4LwjEQ2UxD+p\nPbv7xqFhQMTEOufH5LUa10JD9VYTXcZCmigPG3MtYFJJs/T5bJ5odHJvx9yI\n35QV\r\n=T3VX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"6ebd67ff818b79067ee1bb22ed6f5b8cb8cc6c91","scripts":{"test":"node test/index.js"},"_npmUser":{"name":"jedisct1","email":"npm@pureftpd.org"},"repository":{"url":"git+https://github.com/jedisct1/siphash-js.git","type":"git"},"_npmVersion":"6.9.0","description":"SipHash-2-4 fast short-input pseudo-random function","directories":{},"_nodeVersion":"11.14.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/siphash_1.1.0_1556199310637_0.9828968813631955","host":"s3://npm-registry-packages"}},"1.2.0":{"author":{"name":"Frank Denis","email":"j at pureftpd dot org"},"bugs":{"url":"https://github.com/jedisct1/siphash-js/issues"},"description":"SipHash-2-4 fast short-input pseudo-random function","homepage":"https://github.com/jedisct1/siphash-js","keywords":["prf","hash","crypto"],"license":"BSD-2-Clause","main":"index.js","name":"siphash","repository":{"type":"git","url":"git+https://github.com/jedisct1/siphash-js.git"},"scripts":{"test":"node test/index.js"},"version":"1.2.0","_id":"siphash@1.2.0","gitHead":"829120839c4ff6021ee00904c6751eefa5ea8540","_nodeVersion":"23.3.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-zGo/O5A0Nr4oSteEAMlhemqQpCBbVTRaTjUQdO+QFUqe1iofq/NNPe2W1RxJreh89fIk6NhQcNi41UeTGCvr+g==","shasum":"5171c421fae07e69633397a0ab245ee112e90374","tarball":"https://registry.npmjs.org/siphash/-/siphash-1.2.0.tgz","fileCount":20,"unpackedSize":72702,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICyUY7J3IPnTib6m7ozHGVXAcFgq31f42dS+K8NMcMFHAiADyToW8LumxJ7yGrKhiR/kNngEJWTIXBycrRRDWQFHNA=="}]},"_npmUser":{"name":"jedisct1","email":"npm@pureftpd.org"},"directories":{},"maintainers":[{"name":"jedisct1","email":"npm@pureftpd.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/siphash_1.2.0_1733837976120_0.41233420604662596"},"_hasShrinkwrap":false}},"time":{"created":"2012-06-23T23:47:28.675Z","modified":"2024-12-10T13:39:36.453Z","1.0.0":"2012-06-23T23:48:41.262Z","1.0.1":"2013-04-04T02:17:21.893Z","1.0.3":"2016-12-12T14:56:57.395Z","1.1.0":"2019-04-25T13:35:10.799Z","1.2.0":"2024-12-10T13:39:36.301Z"},"bugs":{"url":"https://github.com/jedisct1/siphash-js/issues"},"author":{"name":"Frank Denis","email":"j at pureftpd dot org"},"license":"BSD-2-Clause","homepage":"https://github.com/jedisct1/siphash-js","keywords":["prf","hash","crypto"],"repository":{"type":"git","url":"git+https://github.com/jedisct1/siphash-js.git"},"description":"SipHash-2-4 fast short-input pseudo-random function","maintainers":[{"name":"jedisct1","email":"npm@pureftpd.org"}],"readme":"siphash.js\n==========\n\nA pure Javascript implementation of\n[SipHash](https://www.aumasson.jp/siphash/siphash.pdf)\n\n> SipHash is a family of pseudorandom functions optimized for short\n> inputs. Target applications include network traffic authentication and\n> hash-table lookups protected against hash-flooding denial-of-service\n> attacks. SipHash has well-defined security goals and competitive\n> performance.\n\nThis package also includes implementations of SipHash-1-3, SipHash128, and SipHash128-1-3.\n\nInstallation\n------------\n\nServer-side installation (io.js/nodejs):\n\n    $ npm install siphash\n\nBrowser-side/single-line minified version: use\n[lib/siphash.js.min](https://raw.githubusercontent.com/jedisct1/siphash-js/master/lib/siphash.js.min).\n\nUsage\n-----\n\n```javascript\nvar siphash = require(\"siphash\"),\n    key = siphash.string16_to_key(\"This is the key!\"),\n    message = \"Short test message\",\n    hash_hex = siphash.hash_hex(key, message);\n```\n\nA key is an array of 4 integers, and each of them will be clamped to\n32 bits in order to build a 128-bit key.\nFor a random key, just generate 4 random integers instead of calling\n`string16_to_key()`.\n\n```javascript\nvar siphash = require(\"siphash\"),\n    key = [ 0xdeadbeef, 0xcafebabe, 0x8badf00d, 0x1badb002 ],\n    message = \"Short test message\",\n    hash_hex = siphash.hash_hex(key, message);\n```\n\nThe 64-bit hash can also be obtained as two 32-bit values with\n`hash(key, message)`:\n\n```javascript\nvar siphash = require(\"siphash\"),\n    key = [ 0xdeadbeef, 0xcafebabe, 0x8badf00d, 0x1badb002 ],\n    message = \"Short test message\",\n    hash = siphash.hash(key, message),\n    hash_msb = hash.h,\n    hash_lsb = hash.l;\n```\n\nA 53-bit unsigned integer can be obtained with `hash_uint(key, message)`:\n\n```javascript\nvar siphash = require(\"siphash\"),\n    key = siphash.string16_to_key(\"0123456789ABCDEF\"),\n    message = \"Short test message\",\n    index = siphash.hash_uint(key, message);\n```\n\nSipHash-1-3\n-----------\nSipHash-1-3 is a faster variant of SipHash-2-4 with fewer rounds, which is still believed to be secure\nenough for typical uses. This variant is available here:\n[siphash13.js](https://raw.githubusercontent.com/jedisct1/siphash-js/master/lib/siphash13.js.min)\n\n\nSipHash-double\n--------------\n\nAlthough not part of the module, an implementation of SipHash with\n128-bit output is also available:\n[siphash-double.js](https://raw.githubusercontent.com/jedisct1/siphash-js/master/lib/siphash-double.js.min)\n\nSipHash-1-3 with a 128-bit output is also part of the package:\n[siphash13-double.js](https://raw.githubusercontent.com/jedisct1/siphash-js/master/lib/siphash13-double.js.min)\n","readmeFilename":"README.md","users":{"bkw":true,"shanewholloway":true}}