Add RSA to TeleSec (more efficient)

This commit is contained in:
naielv
2025-09-09 15:25:06 +02:00
parent 34f61777c3
commit c50c29f743
11 changed files with 55 additions and 28 deletions

View File

@@ -40,7 +40,7 @@ PAGES.comedor = {
data["Platos"] || "";
}
if (typeof data == "string") {
SEA.decrypt(data, SECRET, (data) => {
TS_decrypt(data, SECRET, (data) => {
load_data(data, "%E");
});
} else {
@@ -59,7 +59,7 @@ PAGES.comedor = {
betterGunPut(gun.get(TABLE).get("comedor").get(mid), null);
}
var enc = SEA.encrypt(data, SECRET, (encrypted) => {
var enc = TS_encrypt(data, SECRET, (encrypted) => {
document.getElementById("actionStatus").style.display = "block";
betterGunPut(gun.get(TABLE).get("comedor").get(newDate), encrypted);
toastr.success("Guardado!");