]> source.dussan.org Git - nextcloud-server.git/commit
Save encrypted files in binary format 32110/head
authorplumbeo <plumbeo@users.noreply.github.com>
Sat, 16 Apr 2022 15:14:13 +0000 (17:14 +0200)
committerplumbeo <plumbeo@users.noreply.github.com>
Wed, 4 May 2022 15:38:25 +0000 (17:38 +0200)
commit1258caeab7dec7510781ba7b575390459e2e61e5
tree8762cf7c8d0b7406478f1a9cd39da353d0a90647
parent20d7bf8a880ddf41874afdaf3784d29bc1bc925d
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>
apps/encryption/lib/Crypto/Crypt.php
apps/encryption/lib/Crypto/Encryption.php
apps/encryption/tests/Crypto/CryptTest.php
config/config.sample.php
lib/private/Files/Stream/Encryption.php