Skip to content
Snippets Groups Projects
Commit 5af7f926 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

fileutils: reuse password salt if possible

Change-Id: Iee22b03bf0b5171ed4dd5b6e8e26fea57e0022bb
parent 60918828
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment