diff options
author | plumbeo <plumbeo@users.noreply.github.com> | 2022-04-16 17:14:13 +0200 |
---|---|---|
committer | plumbeo <plumbeo@users.noreply.github.com> | 2022-05-04 17:38:25 +0200 |
commit | 1258caeab7dec7510781ba7b575390459e2e61e5 (patch) | |
tree | 8762cf7c8d0b7406478f1a9cd39da353d0a90647 /config | |
parent | 20d7bf8a880ddf41874afdaf3784d29bc1bc925d (diff) | |
download | nextcloud-server-1258caeab7dec7510781ba7b575390459e2e61e5.tar.gz nextcloud-server-1258caeab7dec7510781ba7b575390459e2e61e5.zip |
Save encrypted files in binary format
Default to the more space-efficient binary encoding for newly encrypted files
instead of the traditional base64 encoding, eliminating the 33% overhead.
The new option 'encryption.use_legacy_encoding' allows to force the legacy
encoding format if needed. Files encoded in the old format remain readable.
Based on https://github.com/owncloud/encryption/pull/224 and
https://github.com/owncloud/core/pull/38249 by karakayasemi.
Signed-off-by: plumbeo <plumbeo@users.noreply.github.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/config.sample.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php index 54d3d46070a..77e587acf83 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -1799,6 +1799,15 @@ $CONFIG = [ 'cipher' => 'AES-256-CTR', /** + * Use the legacy base64 format for encrypted files instead of the more space-efficient + * binary format. The option affects only newly written files, existing encrypted files + * will not be touched and will remain readable whether they use the new format or not. + * + * Defaults to ``false`` + */ +'encryption.use_legacy_base64_encoding' => false, + +/** * The minimum Nextcloud desktop client version that will be allowed to sync with * this server instance. All connections made from earlier clients will be denied * by the server. Defaults to the minimum officially supported Nextcloud desktop |