{"repo":"jedisct1/siphash-js","free":true,"listed":false,"github":"https://github.com/jedisct1/siphash-js","clone":"git clone https://github.com/jedisct1/siphash-js.git","description":"A Javascript implementation of SipHash-2-4","language":"JavaScript","stars":129,"topics":["siphash","hash","crypto","cryptography","javascript","typescript","authentication"],"license":"BSD-2-Clause","category":"auth-billing-email","readme_excerpt":"siphash.js ========== A pure Javascript implementation of SipHash SipHash is a family of pseudorandom functions optimized for short inputs. Target applications include network traffic authentication and hash-table lookups protected against hash-flooding denial-of-service attacks. SipHash has well-defined security goals and competitive performance. This package also includes implementations of SipHash-1-3, SipHash128, and SipHash128-1-3. Installation ------------ Server-side installation (io.js/nodejs): $ npm install siphash Browser-side/single-line minified version: use lib/siphash.js.min. Usage ----- A key is an array of 4 integers, and each of them will be clamped to 32 bits in order to build a 128-bit key. For a random key, just generate 4 random integers instead of calling string16 to key() . The 64-bit hash can also be obtained as two 32-bit values with hash(key, message) : A 53-bit unsigned integer can be obtained with hash uint(key, message) : SipHash-1-3 ----------- SipHash-1-3 is a faster variant of SipHash-2-4 with fewer rounds, which is still believed to be secure enough for typical uses. This variant is available here: siphash13.js SipHash-double -------------- Although not part of the module, an implementation of SipHash with 128-bit output is also available: siphash-double.js SipHash-1-3 with a 128-bit output is also part of the package: siphash13-double.js","default_branch":null,"files":null,"tree":[],"storefront":"/r/jedisct1","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jedisct1/siphash-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}