rootdo/content/totp/js/hex-to-base32.js

14 lines
209 B
JavaScript
Raw Normal View History

2024-10-04 12:44:59 +00:00
new Vue({
el: '#app',
data: {
hex: '',
},
computed: {
base32: function () {
const buf = OTPAuth.Utils.hex.encode(this.hex);
return OTPAuth.Utils.b32.decode(buf);
}
}
});