You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

sshpk

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

14

lib/fingerprint.js

@@ -71,3 +71,9 @@ // Copyright 2015 Joyent, Inc.

alg = parts[0].toLowerCase();
hash = new Buffer(parts[1], 'base64');
if (!/^[A-Za-z0-9+\/=]+$/.test(parts[1]))
throw (new FingerprintFormatError(fp));
try {
hash = new Buffer(parts[1], 'base64');
} catch (e) {
throw (new FingerprintFormatError(fp));
}
} else if (parts.length > 2) {

@@ -80,3 +86,7 @@ alg = 'md5';

throw (new FingerprintFormatError(fp));
hash = new Buffer(parts, 'hex');
try {
hash = new Buffer(parts, 'hex');
} catch (e) {
throw (new FingerprintFormatError(fp));
}
}

@@ -83,0 +93,0 @@

2

package.json
{
"name": "sshpk",
"version": "1.0.3",
"version": "1.0.4",
"description": "A library for finding and using SSH public keys",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc