speakeasy
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -271,3 +271,3 @@ // # speakeasy | ||
for (var i = 0, l = bytes.length; i < l; i++) { | ||
output += set[~~(bytes[i] / 0xFF * set.length)]; | ||
output += set[Math.floor(bytes[i] / 255.0 * (set.length-1))]; | ||
} | ||
@@ -274,0 +274,0 @@ return output; |
@@ -5,3 +5,3 @@ { | ||
"description": "Easy two-factor authentication with node.js. Time-based or counter-based (HOTP/TOTP), and supports the Google Authenticator mobile app. Also includes a key generator. Uses the HMAC One-Time Password algorithms.", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"homepage": "http://github.com/markbao/speakeasy", | ||
@@ -8,0 +8,0 @@ "repository": { |
75974