Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

highwayhash

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

highwayhash - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

src/highwayhash/endianess.h

13

package.json
{
"name": "highwayhash",
"version": "2.0.0",
"version": "2.1.0",
"author": "Lovell Fuller <npm@lovell.info>",
"description": "Node.js implementation of HighwayHash, Google's fast and strong hash function",
"homepage": "https://github.com/lovell/highwayhash",
"scripts": {
"test": "semistandard && node test/unit"
"test": "semistandard && cc && node test/unit"
},

@@ -25,4 +26,5 @@ "main": "index.js",

"devDependencies": {
"cc": "^1.0.1",
"long": "^3.2.0",
"semistandard": "^9.2.1"
"semistandard": "^10.0.0"
},

@@ -32,3 +34,8 @@ "license": "Apache-2.0",

"node": ">=4"
},
"cc": {
"ignore": [
"src/highwayhash/**"
]
}
}

@@ -26,3 +26,4 @@ # highwayhash

* x64 CPU
* x64 CPU (ARM support coming soon)
* Linux or OS X (Windows support [coming soon](https://github.com/google/highwayhash/issues/46))
* Node.js v4+

@@ -44,25 +45,20 @@ * [node-gyp](https://github.com/nodejs/node-gyp#installation) and its dependencies

```javascript
const key = new Buffer([
0x55, 0xce, 0x85, 0x31, 0x06, 0x5e, 0xdc, 0x68,
0x0b, 0x46, 0x14, 0xb6, 0x0c, 0xfe, 0x80, 0xcc,
0x7d, 0xcf, 0x89, 0xe5, 0x83, 0xfe, 0x9a, 0xae,
0x1c, 0x8b, 0xee, 0xeb, 0x3e, 0xe3, 0x1d, 0x1d
]);
const key = require('crypto').randomBytes(32);
const input = 'The quick brown fox jumped over the lazy sleeping dog';
const input = Buffer.from('The quick brown fox jumped over the lazy sleeping dog');
const hashAsString = highwayhash.asString(key, input);
// '15456351453344120596'
// Example: '15456351453344120596'
const hashAsHexString = highwayhash.asHexString(key, input);
// '143f2b6cc1fd7fd6'
// Example: '143f2b6cc1fd7fd6'
const hashAsUInt32Low = highwayhash.asUInt32Low(key, input);
// 1814773524
// Example: 1814773524
const hashAsUInt32High = highwayhash.asUInt32High(key, input);
// 3598712257
// Example: 3598712257
const hashAsBuffer = highwayhash.asBuffer(key, input);
// <Buffer 14 3f 2b 6c c1 fd 7f d6>
// Example: <Buffer 14 3f 2b 6c c1 fd 7f d6>

@@ -69,0 +65,0 @@ ```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc