highwayhash
Advanced tools
Comparing version 2.0.0 to 2.1.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
175937
30
0
0
3
164