Skip to content

Commit cd78744

Browse files
authored
Merge pull request #138 from cryptomator/feature/reoder-encrypted-file-names
Consolidate encrypted file name docs and add video walkthrough
2 parents 4a99c0b + ec65adf commit cd78744

File tree

5 files changed

+59
-41
lines changed

5 files changed

+59
-41
lines changed

docs/desktop/accessing-vaults.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,7 @@ On Windows, you can choose the drive letter of the virtual drive for each vault
5858

5959
## Locate Encrypted File {#locate-encrypted-file}
6060

61-
The Locate Encrypted File feature helps users find the encrypted version of a specific file. This feature is particularly useful when vault files are versioned and the user wants to restore an older version of a file. As Cryptomator encrypts filenames and obfuscates directory structures, users first locate the encrypted file and then restore an older version of the encrypted file with the third party app.
62-
63-
1. Unlock the desired vault.
64-
2. Click on the `Locate Encrypted File` button.
65-
3. Select the file within the vault.
66-
67-
As an alternative for clicking the button, you can directly drag & drop a file onto the button.
68-
69-
A file manager window opens showing the encrypted folder and marking the encrypted file.
70-
71-
<video controls autoplay loop muted style={{width: '100%', maxWidth: '1280px', height: 'auto'}}>
72-
<source src="/vid/locate-encrypted-file.mov" type="video/mp4" />
73-
Your browser does not support the video tag.
74-
</video>
61+
See [Locate Encrypted File](/docs/desktop/encrypted-file-names.md#locate-encrypted-file) in the Encrypted File Names section.
7562

7663
## File System Case Sensitivity {#file-system-case-sensitivity}
7764

docs/desktop/encrypted-file-names.md

Lines changed: 58 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,59 @@ sidebar_position: 7
77
# Encrypted File Names
88

99
:::info
10-
Neither file name nor directory structure encryption can be disabled.
10+
File name and directory structure encryption **cannot** be disabled.
1111
:::
1212

13-
Cryptomator protects your files by not only encrypting their content, but also their names and the overall directory structure of the vault.
14-
For example, if you have a directory structure inside your vault like this:
13+
Cryptomator protects your files by not only encrypting their content, but also their names and the overall directory structure of the vault. As a result, encrypted files and folders inside the vault storage location do not reveal the original names or layout (for an example see [below](#technical-example)).
14+
15+
This matters whenever you need to match a cleartext file in your unlocked vault with its encrypted counterpart in the vault storage location, for example when restoring an older version from a cloud provider or backup tool.
16+
17+
The app offers two features to reveal the mapping between the cleartext and the encrypted files:
18+
* `Locate Encrypted File`: You have the cleartext file in the unlocked vault and want to find its encrypted counterpart in the vault storage location.
19+
* `Decrypt File Name`: You have an encrypted vault file and want to know its original cleartext name.
20+
21+
<Image src="/img/desktop/encrypted-file-names-vault-detail-unlocked.png" alt="Vault detail view in the unlocked state" width="495" height="381" />
22+
23+
## Locate Encrypted File {#locate-encrypted-file}
24+
25+
The Locate Encrypted File feature helps you find the encrypted counterpart of a file from inside the vault. This comes in handy when you want to restore an older version of a file. As Cryptomator encrypts file names and obfuscates directory structures, first locate the encrypted file and then restore an older version of the encrypted file with your third-party app.
26+
27+
1. Unlock the desired vault.
28+
2. Click on the `Locate Encrypted File` button.
29+
3. Select the file within the vault.
30+
31+
As an alternative for clicking the button, you can directly drag & drop a file onto the button.
32+
33+
A file manager window opens showing the encrypted folder and marking the encrypted file inside the vault storage location.
34+
35+
## Decrypt File Name {#decrypt-file-name}
36+
37+
The Decrypt File Name feature helps you resolve encrypted file names back to their original cleartext names.
38+
39+
1. Unlock the desired vault.
40+
2. Click on the `Decrypt File Name` zone at the bottom of the unlocked view.
41+
3. Select the encrypted file.
42+
43+
As an alternative for clicking the zone, you can directly drag & drop files onto it.
44+
45+
A modal window opens showing a two-column table with the encrypted names on the left and their decrypted, cleartext names on the right.
46+
47+
<Image src="/img/desktop/decrypt-file-names.png" alt="Decrypt file names window" width="311" height="385" />
48+
49+
The action bar at the top of the table provides two buttons:
50+
* Clipboard button to copy the whole table as CSV into the system clipboard
51+
* Trash button to clear the table
52+
53+
You can select single cells and copy their content with the OS-specific keyboard shortcut.
54+
55+
:::note
56+
For technical reasons, Cryptomator can only decrypt the *file name* of a given encrypted file.
57+
It cannot tell where that file is located in the unlocked vault.
58+
:::
59+
60+
## Technical Example
61+
62+
If you have a directory structure inside your vault like this:
1563

1664
```
1765
.
@@ -40,30 +88,13 @@ The actual directory structure of the vault on your hard drive/cloud will look l
4088
└─ vault.cryptomator
4189
```
4290

43-
While this increases security, it also makes it impossible to see the original file names and directory structure without decrypting them first.
44-
When you need to know the original name of a file (e.g. to restore an older version), you can use the `Decrypt File Name` feature to decrypt the file name.
45-
46-
## Decrypting File Names {#decrypting-file-names}
91+
This is why you cannot identify files in the vault storage location by name alone without decrypting them first. For more information about the vault encryption scheme read [the specification](/docs/security/vault.md).
4792

48-
:::note
49-
Due to technical reasons, given only an encrypted file Cryptomator can only decrypt its name.
50-
It cannot compute its cleartext path.
51-
:::
52-
53-
You can access this feature from the unlocked view of a vault in the Cryptomator main window.
54-
On the bottom of the unlocked view, drop files on the `Decrypt File Name` zone or click on it.
55-
A modal window with the encrypted-decrypted-mapping opens.
56-
57-
<Image src="/img/desktop/vault-detail-unlocked.png" alt="Vault detail view in the unlocked state" width="495" height="381" />
58-
59-
The encrypted-decrypted-table has an action bar at the top with two buttons:
60-
* Clipboard button to copy the whole table as a CSV into the system clipboard
61-
* Trash button to clear the table
62-
63-
<Image src="/img/desktop/decrypt-file-names.png" alt="Decrypt file names window" width="311" height="385" />
93+
## Video Walkthrough
6494

65-
Encrypted file names and their corresponding decrypted, original name are shown inside a two column table, with the encrypted names on the right.
66-
If you have not dropped any files, the table is empty.
67-
You can click inside the empty table to select files with a file picker dialog.
95+
The following video demonstrates both features in action: first, **Locate Encrypted File** to find the encrypted counterpart of a file, and then **Decrypt File Name** to resolve an encrypted file name back to its original name.
6896

69-
Once the table has content, you can select single cells and copy their content with the OS specific keyboard copy shortcut.
97+
<video controls autoplay loop muted style={{width: '100%', maxWidth: '1280px', height: 'auto'}}>
98+
<source src="/vid/file-names.mov" type="video/mp4" />
99+
Your browser does not support the video tag.
100+
</video>
252 KB
Loading
216 KB
Loading

static/vid/file-names.mov

10.8 MB
Binary file not shown.

0 commit comments

Comments
 (0)