Skip to content

Conversation

@thekid
Copy link
Member

@thekid thekid commented Dec 7, 2025

Example

use io\archive\zip\{ZipFile, ZipFileEntry, Encryption};
use io\File;

$z= ZipFile::create(new File('encrypted.zip'))->encryptWith(Encryption::aes($secret, 256));

$file= $z->add(new ZipFileEntry('password.txt'));
$file->out()->write($contents);

$z->close();

See also

@thekid thekid merged commit 9e39aa6 into master Dec 12, 2025
22 checks passed
@thekid thekid deleted the feature/encrypt branch December 12, 2025 19:18
@thekid
Copy link
Member Author

thekid commented Dec 12, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants