Enable the Encryption App

Before you can use encryption you must enable the encryption app. You can do this either from the command-line or from the Web-UI.

Enable Encryption From the Command-Line

To enable the encryption app, run the following command:

sudo -u www-data php occ app:enable encryption

If the encryption app successfully enables, then you should see the following confirmation:

encryption enabled
This should never happen, but the encryption app may not be packaged with your ownCloud installation. If so, you will see the following output when you attempt to enable it:
encryption not found

If that happens, then you need to install it manually. You can do this by cloning the encryption app, using the following command:

git clone https://github.com/owncloud/encryption.git apps/encryption

== Enable Encryption From the Web-UI

To enable encryption from the Web-UI:

  1. Go to Settings  Admin  Apps and click on Show disabled apps

  2. When the disabled apps are rendered click Enable under "Default encryption module".

  3. After that go to Settings  Admin  Encryption, and enable Enable server-side encryption.

  4. Then, under "Default encryption module", select the desired encryption type, whether "Master Key" (recommended) or "User-key".

  5. Now you must log out and then log back in to initialize your encryption keys.