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

yub

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yub - npm Package Compare versions

Comparing version 0.10.8 to 0.10.9

10

lib/modhex.js

@@ -30,7 +30,7 @@ // lookup table for modhex codes

hex += toHex(dst << 4 | b);
}
}
// return as hexadecimal number
return hex;
}
}
// return as hexadecimal number
return hex;
}

@@ -37,0 +37,0 @@

@@ -155,3 +155,4 @@ var crypto = require('crypto');

encryptedHex: modhex.decode(encrypted),
serial: modhex.decodeInt(identity)
serial: modhex.decodeInt(identity),
valid: false
};

@@ -158,0 +159,0 @@

{
"name": "yub",
"version": "0.10.8",
"version": "0.10.9",
"description": "Yubico Yubikey API Client for Node.js",

@@ -15,6 +15,6 @@ "main": "index.js",

"author": "Glynn Bird",
"license": "BSD",
"license": "Apache-2.0",
"dependencies": {
"request": "2.27.0"
"request": "2.60.0"
}
}

@@ -36,5 +36,5 @@ # YUB

* a Yubikey
* node.js
* npm
* a [Yubikey](http://www.yubico.com/)
* [node.js](http://nodejs.org/)
* [npm](https://npmjs.org/)

@@ -49,3 +49,3 @@ ## Installation

You'll also need a Yubico API Key from here: https://upgrade.yubico.com/getapikey/. This gives you the
You'll also need a Yubico API Key from here: [https://upgrade.yubico.com/getapikey/]([https://upgrade.yubico.com/getapikey/). This gives you the
client_id and secret_key that must be passed to "yub.init()", see below.

@@ -81,3 +81,4 @@

identity: 'cccaccbtbvkw',
serial: 123456
serial: 123456,
valid: true
}

@@ -101,2 +102,3 @@ ```

* serial - the serial number of the Yubikey. This is derived by decoding the identity's modhex encoding.
* valid - this is true if the status = 'OK', the signature is verified and the nonce is verified

@@ -108,3 +110,4 @@ ## Offline verification

from the OTP without any network access. This is, of course, far less secure, but is useful
for offline applications.
for offline applications. As we cannot validate the status online, "valid" is always false in
offline mode.

@@ -128,3 +131,4 @@ ## Further examples

nonceVerified: true,
identity: 'cccaccbtbvkw'}
identity: 'cccaccbtbvkw',
valid: true }
```

@@ -131,0 +135,0 @@

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