@levminer/speakeasy
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -464,4 +464,4 @@ const base32 = require("base32.js") | ||
SecretKey.ascii = key | ||
SecretKey.hex = Buffer.alloc(key, "ascii").toString("hex") | ||
SecretKey.base32 = base32.encode(Buffer.alloc(key)).toString().replace(/=/g, "") | ||
SecretKey.hex = Buffer.from(key, "ascii").toString("hex") | ||
SecretKey.base32 = base32.encode(Buffer.from(key)).toString().replace(/=/g, "") | ||
@@ -602,3 +602,3 @@ // generate some qr codes if requested | ||
// convert secret to base32 | ||
if (encoding !== "base32") secret = Buffer.alloc(secret, encoding) | ||
if (encoding !== "base32") secret = Buffer.from(secret, encoding) | ||
if (Buffer.isBuffer(secret)) secret = base32.encode(secret) | ||
@@ -605,0 +605,0 @@ |
{ | ||
"name": "@levminer/speakeasy", | ||
"description": "Two-factor authentication for Node.js. Generate One-time passcode generator (HOTP/TOTP) with support for Google Authenticator.", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"homepage": "http://github.com/Levminer/speakeasy", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/Levminer/speakeasy/issues", |
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
84529