Skip to content

Instantly share code, notes, and snippets.

@tobihagemann
Created November 16, 2019 09:13
Show Gist options
  • Select an option

  • Save tobihagemann/c96de6067cb985997b72ede7f37e802c to your computer and use it in GitHub Desktop.

Select an option

Save tobihagemann/c96de6067cb985997b72ede7f37e802c to your computer and use it in GitHub Desktop.
Cryptomator Vault Format 7

Beginning with vault format v7, filenames are encoded with base64url so that name shortenings are less likely. The ciphertext filename threshold has been increased to 220 characters. The ciphertext file layout has been redesigned.

This is an example of the new vault structure:

.
├─ d
│  ├─ BZ
│  │  └─ R4VZSS5PEF7TU3PMFIMON5GJRNBDWA
│  │     ├─ 5TyvCyF255sRtfrIv__83ucADQ==.c9r  # regular file
│  │     ├─ FHTa55bH_sUfVDbEb0gTL9hZ8nho.c9r  # irregular file...
│  │     │  └─ dir.c9r  # ...which is a directory
│  │     ├─ gLeOGMCN358_UBf2Qk9cWCQl.c9r  # irregular file...
│  │     │  └─ symlink.c9r  # ...which is a symlink
│  │     ├─ IjTsXtReTy6bAAuxzLPV9T0k2vg=.c9s  # shortened name...
│  │     │  ├─ contents.c9r  # ...which is a regular file
│  │     │  └─ name.c9s  # ...mapping to this full name
│  │     ├─ q2nx5XeNCenHyQvkFD4mxYNrWpQ=.c9s  # shortened name...
│  │     │  ├─ dir.c9r  # ...which is a directory
│  │     │  └─ name.c9s  # ...mapping to this full name
│  │     ├─ u_JJCJE-T4IH-EBYASUp1u3p7mA=.c9s  # shortened name...
│  │     │  ├─ name.c9s  # ...mapping to this full name
│  │     │  └─ symlink.c9r  # ...which is a symlink
│  │     └─ ...
│  └─ FC
│     └─ ZKZRLZUODUUYTYA4457CSBPZXB5A77
│        └─ ...
├─ masterkey.cryptomator
└─ masterkey.cryptomator.DFD9B248.bkup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment