hm
All checks were successful
Deploy / trigger (push) Successful in 24s

This commit is contained in:
2026-04-20 22:22:49 +02:00
parent be33e66d5c
commit 48f0c35039
3 changed files with 3 additions and 6 deletions

View File

@@ -15,13 +15,12 @@ async function encrypt() {
}
async function decrypt() {
const ciphertext = document.getElementById("ciphertext").value;
if (!ciphertext) return alert("Nessun testo da decifrare!");
const c = document.getElementById("ciphertext").value;
if (!c) return alert("Nessun testo da decifrare!");
try {
const res = await fetch("/seal/caesar/decrypt", {
method: "POST", headers: { "Content-Type": "application/json" },
body: JSON.stringify({ ciphertext: ciphertext })
body: JSON.stringify({ ciphertext: c })
});
const data = await res.json();
document.getElementById("decodedtext").value = JSON.stringify(data, null, 2);