nextcloud / end_to_end_encryption_rfc

🔒 Specification for end-to-end encryption used by Nextcloud sync & mobile apps
Other
31 stars 15 forks source link

Encryption of subfolders #25

Open woefe opened 6 years ago

woefe commented 6 years ago

Encryption of subfolders can be handled in multiple ways.

  1. Encrypt every subfolder separately and create a metadata file for every subfolder. The folder structure would be visible on the server.
  2. Create a single metadata file only for the top level encrypted folder. I.e. all subfolders would be covered by a single metadata file. All files, including files in subfolders, would be located in one folder without any subfolders. The subfolder structure would be restored on the clients using the filename attribute, which in this case would support complete paths like subfolder/file.txt.