# FileEncryptDecrypt

FileEncryptDecrypt encrypts or decrypts a file where it lies on the server, on request, without the file being transferred through the server again. It has no settings of its own.

> [!NOTE]
> A server of version 27 built from the current sources comes with eleven plugins, and this one is not among them. Preferences still has its screen, which shows when the plugin's file is in the server's `plugins` folder, as it can be on a server that was upgraded from an earlier version, and where files that are not the server's own may be loaded: see [Writing a plugin](Plugins-Writing-Your-Own.md#getting-it-loaded). This page is written from that screen and the plugin's own help text; the plugin was not run.

## Settings

| Setting | Is |
|---|---|
| **Enabled** | the plugin answers requests |
| **Debug** | it writes what it does to the log |

## What it was made for

On a server that encrypts files as it stores them, a file is decrypted by downloading it, and encrypted by uploading it. That is the normal way and needs no plugin.

This plugin was made for the few who needed another way: a page of the web interface, `FileEncryptDecrypt.html`, that makes the server encrypt or decrypt one named file in place. The web interface of version 27 has no such page.

## In version 27

| To | Use |
|---|---|
| encrypt or decrypt files in place, on a schedule or when they arrive | a [PGP task](Task-PGP.md) in a job |
| store everything a user uploads encrypted | [PGP Key Setup](Users-Restrictions.md#pgp-key-setup) of the user, or the encryption of a folder in [VFS: Advanced](VFS-Advanced.md#encryption) |
| keep the keys | the [PGP app](Web-PGP.md) |
