fix infos

This commit is contained in:
Mylloon 2022-10-28 23:02:09 +02:00
parent 71bae2c750
commit 5aaf60d9d5
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -90,10 +90,12 @@ const send = (file, element) => {
const req = new XMLHttpRequest();
element = update(element, "Génération des clefs...", "H3");
element = update(
element,
"Génération des clefs et chiffrement du fichier...",
"H3"
);
gen_RSA_keypair(1024).then(([pub_key, sec_key]) => {
element = update(element, "Chiffrement du fichier...", "H3");
let data = {
file: RSA_enc(content, sec_key).join(","),
filename: RSA_enc(file.name, sec_key).join(","),