This commit is contained in:
exams228
2018-11-14 12:53:41 +00:00
parent c071251c0a
commit 75c7c9a982
5 changed files with 17 additions and 28 deletions

View File

@@ -20,7 +20,7 @@
const pubkey = document.getElementById("pubKey").value
const cleartext = document.getElementById("signMsg").value
options = {
const options = {
message: await openpgp.cleartext.readArmored(cleartext).catch((err) => {document.getElementById("result").value = err.message;document.getElementById("progressbar").className = "progress-bar bg-danger";}), // parse armored message
publicKeys: (await openpgp.key.readArmored(pubkey).catch((err) => {document.getElementById("result").value = err.message;document.getElementById("progressbar").className = "progress-bar bg-danger";})).keys // for verification
}