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 0.0.1 to 0.0.2

5

index.js

@@ -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);

6

package.json
{
"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

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