From 2c7801bd45c3b19a2e75666416b0d76943a512dd Mon Sep 17 00:00:00 2001 From: Ben Martin Date: Mon, 25 Mar 2024 16:30:33 +1000 Subject: [PATCH] ui3: update crypto to version 3 (GCM+PBKDF2) by default --- docs/v2.0/admin/configuration/index.md | 4 ++-- includes/ConfigDefaults.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/v2.0/admin/configuration/index.md b/docs/v2.0/admin/configuration/index.md index d6bcfa972..9254ee5b4 100644 --- a/docs/v2.0/admin/configuration/index.md +++ b/docs/v2.0/admin/configuration/index.md @@ -1938,8 +1938,8 @@ If you want to find out the expiry timer for your SAML Identity Provider install * __recommend_leaving_at_default:__ true * __mandatory:__ no * __type:__ int -* __default:__ 1 -* __available:__ since version 2.6 +* __default:__ 3 +* __available:__ updated in 3.0 beta7 an above to 3, was 1 since version 2.6 * __comment:__ diff --git a/includes/ConfigDefaults.php b/includes/ConfigDefaults.php index 3c5cd47cb..fe3d01199 100644 --- a/includes/ConfigDefaults.php +++ b/includes/ConfigDefaults.php @@ -286,7 +286,8 @@ // see crypto_app.js for constants in the range crypto_key_version_constants // Generally higher is newer + better. - 'encryption_key_version_new_files' => 1, + // UI3 has changed from '1' to '3' as the default (AES-GCM + PBKDF2) + 'encryption_key_version_new_files' => 3, // for details of possible values see crypto_password_version_constants // in the file js/crypter/crypto_app.js