rootdo/content/totp/js/hex-to-base32.js
2024-10-04 12:44:59 +00:00

13 lines
209 B
JavaScript

new Vue({
el: '#app',
data: {
hex: '',
},
computed: {
base32: function () {
const buf = OTPAuth.Utils.hex.encode(this.hex);
return OTPAuth.Utils.b32.decode(buf);
}
}
});