X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fhotp.js;h=90942cc4b4691af0cd05bd9e3c379b92a650caca;hb=e6793fe68b6066fa5672eda73a5dd76c7c6f48b9;hp=5e20ec6b8ea9bdf29cd66bf5e7f0163dd6f9f547;hpb=6329c254c95a9097a37018c5c4f8d2d010679e59;p=squeep-totp diff --git a/lib/hotp.js b/lib/hotp.js index 5e20ec6..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', }; } @@ -277,6 +277,7 @@ class HMACBasedOneTimePassword { static get _qrURIDefaultOptions() { return { + issuer: '', scheme: 'otpauth', type: this._type, };