cryptomator / cryptofs

Java Filesystem Provider with integrated encryption
GNU Affero General Public License v3.0
93 stars 35 forks source link

Store DirId for every cleartext dir encrypted inside the (cipher) directory #118

Closed infeo closed 2 years ago

infeo commented 2 years ago

Closes #113.

In this PR the implementation of #113 is tracked.

On directory creation, a file called dirid.c9r is placed inside the ciphertext directory. It contains the encrypted directory id in case the ciphertext dir gets orphaned. The dirid is encrypted via the EncryptingWriteableByteChannel API of cryptolib

Existing directories are not migrated, only new directory contain this file.

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

95.7% 95.7% Coverage
0.0% 0.0% Duplication

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

95.7% 95.7% Coverage
0.0% 0.0% Duplication