From 73a3e627c1eb9dc791c1a4cf3a72f71f60f86d71 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Mon, 4 May 2026 16:19:56 +0200 Subject: [PATCH] AESCrypt default v2 This PR sets the default AESCrypt stream format to v2. This is done to introduce the ability to read the v3 format before switching to the new format. With a delayed activation, it is more likely that users can easily roll back a version if needed. --- Duplicati/Library/Encryption/AESEncryption.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Duplicati/Library/Encryption/AESEncryption.cs b/Duplicati/Library/Encryption/AESEncryption.cs index a2c0369db..1634162a0 100644 --- a/Duplicati/Library/Encryption/AESEncryption.cs +++ b/Duplicati/Library/Encryption/AESEncryption.cs @@ -140,6 +140,10 @@ namespace Duplicati.Library.Encryption InsertPlaceholder = false }; + // Until the next stable release, use version 2 by default + if (version == null) + version = 2; + if (version.HasValue) encOpts = encOpts with { FileVersion = (byte)version.Value }; if (iterations.HasValue)