(PHP >= 7.2.0, PHP 8, PECL zip >= 1.14.0)
ZipArchive::setEncryptionIndex — 設定指定索引之項目的加密方法
$index, 整數 $method, #[\SensitiveParameter] ?字串 $password = null): 布林值設定指定索引之項目的加密方法。
index項目的索引。
method由 ZipArchive::EM_ 常數之一定義的加密方法。
password選用密碼,如果遺漏則使用預設值。
| 版本 | 說明 |
|---|---|
| 8.0.0 |
password 現在可以為 null。 |
注意:
此函式僅在使用 libzip ≥ 1.2.0 建置時可用。