Req #66925 [Sus->Csd]: encrypt feature

From: Date: Fri, 13 Jul 2018 17:41:35 +0000
Subject: Req #66925 [Sus->Csd]: encrypt feature
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216310@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66925&edit=1 ID: 66925 Updated by: cmb@php.net Reported by: yvs dot ppt at hotmail dot fr Summary: encrypt feature -Status: Suspended +Status: Closed Type: Feature/Change Request Package: Zip Related Operating System: * PHP Version: * -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Encryption of individual files in Zip archives is available as of PHP 7.2.0 (requires at least libzip 1.2.0)[1]. [1] <https://github.com/php/php-src/blob/php-7.2.0/UPGRADING#L148-L156> Previous Comments: ------------------------------------------------------------------------ [2015-09-04 22:59:00] cmb@php.net I'm suspending this request, until the basic feature is implemented in libzip. ------------------------------------------------------------------------ [2015-07-17 10:44:17] cmb@php.net Related To: Bug #67590 ------------------------------------------------------------------------ [2015-07-17 10:43:52] cmb@php.net Actually, this feature wouldn't require a new method, as ZipArchive::setPassword() could be used, which currently only works for reading. ------------------------------------------------------------------------ [2014-03-18 16:20:17] yvs dot ppt at hotmail dot fr Sorry, there are no method called create for class ZipArchive. Creation of zip is done with method open : $zip->open($zipname, ZipArchive::CREATE); ------------------------------------------------------------------------ [2014-03-18 16:15:34] yvs dot ppt at hotmail dot fr Description: ------------ As "winzip" or "7zip", is-it possible to add encrypt functionnality to ZipArchive ? may be with: $zip = new ZipArchive; $zip->create($zipname, ZipArchive::CREATE); $zip->setEncryptPassword($secretPhrase); // NEW FEATURE $zip->addFile($realpath, $localname); $zip->close(); or: $zip = new ZipArchive; $zip->create($zipname, ZipArchive::CREATE, $encryptPassword); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66925&edit=1

« previous php.bugs (#216310) next »