feat: ZIP encryption option in profile settings #121
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The encryption_password field already exists in the profile form and BackupEngine applies AES-256 encryption when set. Verify the field is visible and working in the current profile UI. If not visible, ensure it shows in the Archive Settings tab.
Note: AES-256 ZIP encryption requires PHP compiled with libzip 1.2.0+ and
ZipArchive::EM_AES_256constant.Check
Verified — the
encryption_passwordfield is already present and visible inprofile.xml(Archive Settings fieldset, lines 96-101). It renders as a standard password input with noshowoncondition, so it always appears in the Archive Settings tab.The encryption flow in
BackupEngine::run()reads the field at line 228 and callsencryptArchive()which applies WinZip-compatible AES-256 encryption viaZipArchive::setEncryptionName()on every file in the archive. The method also validates thatZipArchive::EM_AES_256is available (PHP 7.2+ with libzip 1.2.0+) and throws a clear error if not.No changes needed — closing as already implemented.