# Enable encryption

**URL:** <https://help.nextcloud.com/t/enable-encryption/14927>\
**Category:** ℹ️ Support\
**Created:** [July 4, 2017, 6:15pm UTC](https://help.nextcloud.com/t/enable-encryption/14927 "2017-07-04T18:15:07Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [July 4, 2017, 6:15pm UTC](https://help.nextcloud.com/t/enable-encryption/14927/1 "2017-07-04T18:15:08Z")

</div>

Hello,

Is it save to enable the encryption with 100 GB of files on the server? What happens when the server stops the process, or what ever can be happen? Also is it possible to use Nextant and OCR with encryption enabled?

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_449c533f586939b6e5f246632a46421f.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [July 4, 2017, 7:07pm UTC](https://help.nextcloud.com/t/enable-encryption/14927/2 "2017-07-04T19:07:37Z")

</div>

Not all apps are compatible with the encryption app, please test this before you enable it (I don’t know if there is a list with compatible apps). Also note that the encryption app only protects data if they are store on an external storage. On local storage, there is very little benefit and the encryption makes many things much more complicated.

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [July 4, 2017, 7:33pm UTC](https://help.nextcloud.com/t/enable-encryption/14927/3 "2017-07-04T19:33:25Z")

</div>

My files are stored on the same rootserver. Okay, I don’t know that the encryption App only encrypt files on an external Storage and not the Data Directory.

Thanks for your info.

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [July 6, 2017, 3:32pm UTC](https://help.nextcloud.com/t/enable-encryption/14927/4 "2017-07-06T15:32:31Z")

</div>

The encryption app shows nothing to edit or create an encryption key. Also the user has no entry’s.

The server log shows:

Error  
core  
an hour ago  
Default encryption module not loaded

What’s happen here?

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [July 31, 2017, 8:38am UTC](https://help.nextcloud.com/t/enable-encryption/14927/5 "2017-07-31T08:38:57Z")

</div>

encryption not working for me:

 ![](https://help.nextcloud.com/uploads/default/original/2X/8/8cb8ac549039b7cf29c7f2432dc67d9cc27e5a3d.png)

SSH:

```
root@h2622464:/var/www/vhosts/larsmueller.net/nextcloud# sudo -u lars php occ encryption:set-default-module OC_DEFAULT_MODULE
"OC_DEFAULT_MODULE"" is already the default module
root@h2622464:/var/www/vhosts/larsmueller.net/nextcloud# sudo -u lars php occ encryption:status
  - enabled: true
  - defaultModule: OC_DEFAULT_MODULE

```

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_449c533f586939b6e5f246632a46421f.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [July 31, 2017, 10:26am UTC](https://help.nextcloud.com/t/enable-encryption/14927/6 "2017-07-31T10:26:35Z")

</div>

> [@Lars\_M](#):
>
> Okay, I don’t know that the encryption App only encrypt files on an external Storage and not the Data Directory.

You can do both, but on local storage there is little benefit and you are vulnerable to all the bugs with the encryption app. I haven’t used encryption app for a long time, but at some point all problems I had were related to the encryption app. I protected some sensitive data with encryption containers (client-side encryption).

> [@Lars\_M](#):
>
> encryption not working for me:

On you last screenshot, I don’t see any errors. Are the files still unencrypted?

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [July 31, 2017, 8:26pm UTC](https://help.nextcloud.com/t/enable-encryption/14927/7 "2017-07-31T20:26:40Z")

</div>

It seems encryption working and I can decrypt all files. But the encryption app spamming with “default encryption module not loaded” but it was activated.

I the this at the error log:

```auto
OC\Encryption\Exceptions\ModuleDoesNotExistsException: Default encryption module not loaded
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Encryption/Manager.php - line 201: OC\Encryption\Manager->getDefaultEncryptionModule()
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 1017: OC\Encryption\Manager->getEncryptionModule()
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 447: OC\Files\Storage\Wrapper\Encryption->shouldEncrypt('files_external/...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/LocalTempFileTrait.php - line 66: OC\Files\Storage\Wrapper\Encryption->fopen('files_external/...', 'r')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/LocalTempFileTrait.php - line 49: OC\Files\Storage\Wrapper\Encryption->toTmpFile('files_external/...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 778: OC\Files\Storage\Wrapper\Encryption->getCachedFile('files_external/...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 360: OC\Files\Storage\Wrapper\Encryption->getLocalFile('files_external/...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 360: OC\Files\Storage\Wrapper\Wrapper->getLocalFile('files_external/...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 360: OC\Files\Storage\Wrapper\Wrapper->getLocalFile('files_external/...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/View.php - line 242: OC\Files\Storage\Wrapper\Wrapper->getLocalFile('files_external/...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Security/CertificateManager.php - line 227: OC\Files\View->getLocalFile('/files_external...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Http/Client/Client.php - line 74: OC\Security\CertificateManager->getAbsoluteBundlePath(NULL)
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Http/Client/Client.php - line 137: OC\Http\Client\Client->setDefaultOptions()
/var/www/vhosts/larsmueller.net/nextcloud/settings/Controller/CheckSetupController.php - line 125: OC\Http\Client\Client->get('http //www.gith...')
/var/www/vhosts/larsmueller.net/nextcloud/settings/Controller/CheckSetupController.php - line 108: OC\Settings\Controller\CheckSetupController->isSiteReachable('www.github.com')
/var/www/vhosts/larsmueller.net/nextcloud/settings/Controller/CheckSetupController.php - line 414: OC\Settings\Controller\CheckSetupController->isInternetConnectionWorking()
[internal function] OC\Settings\Controller\CheckSetupController->check()
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 160: call_user_func_array(Array, Array)
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 90: OC\AppFramework\Http\Dispatcher->executeController(Object(OC\Settings\Controller\CheckSetupController), 'check')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OC\Settings\Controller\CheckSetupController), 'check')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('OC\\Settings\\Con...', 'check', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Route/Rout

```

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_449c533f586939b6e5f246632a46421f.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [July 31, 2017, 11:08pm UTC](https://help.nextcloud.com/t/enable-encryption/14927/8 "2017-07-31T23:08:03Z")

</div>

Please report this at [github.com/nextcloud/server/issues](http://github.com/nextcloud/server/issues)

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 2, 2024, 2:10pm UTC](https://help.nextcloud.com/t/enable-encryption/14927/9 "2024-12-02T14:10:04Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 1:38pm UTC](https://help.nextcloud.com/t/enable-encryption/14927/10 "2024-12-04T13:38:10Z")

</div>


