From e6793fe68b6066fa5672eda73a5dd76c7c6f48b9 Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Sun, 10 Mar 2024 11:41:50 -0700 Subject: [PATCH] fix default key encoding for constructor arguments to align with default key creation encoding --- lib/hotp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', }; } -- 2.44.2