fix default key encoding for constructor arguments to align with default key creation...
authorJustin Wind <justin.wind+git@gmail.com>
Sun, 10 Mar 2024 18:41:50 +0000 (11:41 -0700)
committerJustin Wind <justin.wind+git@gmail.com>
Sun, 10 Mar 2024 18:41:50 +0000 (11:41 -0700)
lib/hotp.js

index 7741a19fc9ae4e3dc5d6511dc7a1905d16b2cb9a..90942cc4b4691af0cd05bd9e3c379b92a650caca 100644 (file)
@@ -48,7 +48,7 @@ class HMACBasedOneTimePassword {
     return {
       codeLength: 6,
       counter: 0n,
-      keyEncoding: 'ascii',
+      keyEncoding: 'hex',
       algorithm: 'sha1',
     };
   }