From 5af7f926a0667cfc4ad823a0115f451df9482072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Tue, 30 Jan 2024 13:35:22 -0500 Subject: [PATCH] fileutils: reuse password salt if possible Change-Id: Iee22b03bf0b5171ed4dd5b6e8e26fea57e0022bb --- src/fileutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileutils.cpp b/src/fileutils.cpp index 5a37dc307d..37efce4d5d 100644 --- a/src/fileutils.cpp +++ b/src/fileutils.cpp @@ -400,7 +400,7 @@ writeArchive(const std::string& archive_str, } else if (scheme == ARCHIVE_AUTH_SCHEME_PASSWORD and not password.empty()) { // Encrypt using provided password try { - saveFile(path, dht::crypto::aesEncrypt(archiver::compress(archive_str), password)); + saveFile(path, dht::crypto::aesEncrypt(archiver::compress(archive_str), password, password_salt)); } catch (const std::runtime_error& ex) { JAMI_ERROR("Export failed: {}", ex.what()); return; -- GitLab