fix default key encoding for constructor arguments to align with default key creation...
[squeep-totp] / 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',
     };
   }