Vue
HTML
<div id="app">
Public key <input v-model="publicKey"><br/>
Secret 1 <input v-model="secret1" type="password"><br/>
Secret 2 <input v-model="secret2" type="password"><br/>
<button @click="decrypt">Decrypt</button><br/>
Decrypted: <span>{{ decrypted }}</span>
</div>
Vue
new Vue({
el: "#app",
data: {
publicKey: null,
secret1: null,
secret2: null,
decrypted: null,
},
methods: {
decrypt() {
if (this.publicKey == null || this.secret1 == null || this.secret2 == null) {
return;
}
this.decrypted = this.publicKey ^ this.secret1 ^ this.secret2;
}
}
})