From: Justin Wind Date: Sun, 10 Mar 2024 18:41:50 +0000 (-0700) Subject: fix default key encoding for constructor arguments to align with default key creation... X-Git-Tag: v1.1.3~2 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e6793fe68b6066fa5672eda73a5dd76c7c6f48b9;p=squeep-totp fix default key encoding for constructor arguments to align with default key creation encoding --- diff --git a/lib/hotp.js b/lib/hotp.js index 7741a19..90942cc 100644 --- a/lib/hotp.js +++ b/lib/hotp.js @@ -48,7 +48,7 @@ class HMACBasedOneTimePassword { return { codeLength: 6, counter: 0n, - keyEncoding: 'ascii', + keyEncoding: 'hex', algorithm: 'sha1', }; }