diff --git a/src/fileutils.cpp b/src/fileutils.cpp
index 5a37dc307d258c9c2bee3ab9a82519bb3644707f..37efce4d5d5a3a90e3acf6f3d97028acb802c489 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;