# 文件加密

自更新 2.0+ 版本后，Droppy 使用新方式（openssl）加密和解密文件。在启用加密之前，您需要了解一些事项。

1. V2 版本将无法解密由 Droppy V1 加密的文件，V2 将只能解密新上传的文件，未加密的文件仍可供下载。
2. Droppy 使用 PHP 扩展 openssl，PHP 7 以上版本已预装了 openssl，因此无需特意安装或启用。
3. 文件处理时间会大幅增加，这是因为加密需要占用大量 CPU 资源。
4. Droppy - FTP 插件支持加密文件，但仅限于使用 FTP 连接，而不是使用 SFTP 连接。
5. Droppy - Amazon S3 插件支持文件加密，但不使用本地 openssl 加密，而是使用 S3 AES 265 加密，因此文件将在存储桶（云）中加密，而不是在网络服务器上加密。

### 如何启用 Droppy 文件加密？

首先确保运行的是 PHP 7 以上版本，然后前往管理面板，进入 "**设置**" -> "**常规设置**"，向下滚动并找到 "**文件加密**" 选项，然后选择 "**启用**"，最后点击 "**保存**"。

启用后，所有新上传的文件都将会被加密，并且只能通过 Droppy 下载它们来解密。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://droppy-docs.futa.cc/file-encryption.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
