Merge branch 'zandercodes-fix/293/totp-bugfix'

This commit is contained in:
WolFi 2020-09-20 23:31:28 +02:00
commit 3c07561c30
No known key found for this signature in database
GPG key ID: 7D15585354D072FF

View file

@ -57,7 +57,7 @@
var chunk = bits.substr(i, 4);
hex = hex + parseInt(chunk, 2).toString(16);
}
return hex;
return hex.length % 2 ? hex + "0" : hex;
}
@ -124,4 +124,4 @@
};
}
]);
}());
}());