https://github.com/owncloud/encryption
:lock_with_ink_pen: server side encryption of files
https://github.com/owncloud/encryption
Last synced: 12 months ago
JSON representation
:lock_with_ink_pen: server side encryption of files
- Host: GitHub
- URL: https://github.com/owncloud/encryption
- Owner: owncloud
- License: agpl-3.0
- Created: 2017-07-19T07:33:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-05-09T12:54:50.000Z (about 1 year ago)
- Last Synced: 2025-06-27T21:13:47.175Z (12 months ago)
- Language: PHP
- Homepage:
- Size: 2.29 MB
- Stars: 18
- Watchers: 46
- Forks: 12
- Open Issues: 45
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# encryption
:lock_with_ink_pen: server side encryption of files
[](https://drone.owncloud.com/owncloud/encryption)
[](https://sonarcloud.io/dashboard?id=owncloud_encryption)
[](https://sonarcloud.io/dashboard?id=owncloud_encryption)
[](https://sonarcloud.io/dashboard?id=owncloud_encryption)
In order to use this encryption module you need to enable server-side
encryption in the admin settings. Once enabled this module will encrypt
all your files transparently. The encryption is based on AES 256 keys.
The module won't touch existing files, only new files will be encrypted
after server-side encryption was enabled. It is also not possible to
disable the encryption again and switch back to a unencrypted system.
Please read the documentation to know all implications before you decide
to enable server-side encryption.
## The following occ commands are not documented in the official documentation but added here for completness
The values bellow mostly represent internal configuration state and should not be set by the user directly. They are controlled by respective encryption-commands. Change only if you know what you are doing or are debugging.
`config:app:set encryption masterKeyId --value ??`
`config:app:set encryption recoveryKeyId --value ??`
The ID of the respective key. Background: Instead of giving a path to a keyfile (which might be error-prone) an explicit key-id which is part of the key is given. This is also done to accomodate for Keystorages which might not be file-based.
`config:app:set encryption useMasterKey --value 1/0`
Is masterkey encryption enabled?
`config:app:set encryption crypto.engine --value 'internal | hsm'`
Normal ownCloud encryption vs storing decryption-keys in a HSM
`config:app:set encryption recoveryAdminEnabled --value 1/0`
> Note : You need openSSL version 1.1.x installed for encryption app to work. With the release change of openSSL v1.x to openSSL version 3.x in December 2021, some ciphers which were valid in version 1.x, have been retired with immediate effect. This impacts the ownCloud encryption app. Your encryption environment will break due to openSSL v3 retired (legacy) ciphers. As a result, encrypted files cant be accessed. As a temporary solution, you have to manually reenable in the openSSL v3 config the legacy ciphers. To do so, see the example in the OpenSSL 3.0 Wiki at section 6.2 Providers.