X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fhotp.js;h=90942cc4b4691af0cd05bd9e3c379b92a650caca;hb=b071bd30e9464b1cf98fceead4508ee1e1b64544;hp=7741a19fc9ae4e3dc5d6511dc7a1905d16b2cb9a;hpb=b2ea475512479827a8899b72356f52010a3b4a9c;p=squeep-totp 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', }; }