highwayhash
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -28,2 +28,7 @@ 'use strict'; | ||
}, | ||
asHexString: function (key, input) { | ||
assertKey(key); | ||
assertInput(input); | ||
return HighwayHash.AsHexString(key, input); | ||
}, | ||
asUInt32Low: function (key, input) { | ||
@@ -30,0 +35,0 @@ assertKey(key); |
{ | ||
"name": "highwayhash", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"author": "Lovell Fuller <npm@lovell.info>", | ||
@@ -22,6 +22,6 @@ "description": "Node.js implementation of HighwayHash, Google's fast and strong AVX2+ hash function", | ||
"dependencies": { | ||
"nan": "^2.2.0" | ||
"nan": "^2.2.1" | ||
}, | ||
"devDependencies": { | ||
"long": "^3.0.3", | ||
"long": "^3.1.0", | ||
"semistandard": "^7.0.5" | ||
@@ -28,0 +28,0 @@ }, |
@@ -53,2 +53,5 @@ # highwayhash | ||
const hashAsHexString = highwayhash.asHexString(key, input); | ||
// '4d7943cfb321e0c0' | ||
const hashAsUInt32Low = highwayhash.asUInt32Low(key, input); | ||
@@ -74,2 +77,7 @@ // 3477305677 | ||
### asHexString(key, input) | ||
Returns a hexadecimal String representing the 64-bit unsigned integer hash value of `input`. | ||
This is equivalent to but much faster than `asBuffer().toString('hex')`. | ||
### asBuffer(key, input) | ||
@@ -76,0 +84,0 @@ |
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
41284
39
154
Updatednan@^2.2.1