Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View tobihagemann's full-sized avatar
🦆
What's up, Duck?

Tobias Hagemann tobihagemann

🦆
What's up, Duck?
View GitHub Profile
@tobihagemann
tobihagemann / cryptomator-vault-format-7.md
Created November 16, 2019 09:13
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
@tobihagemann
tobihagemann / cryptomator-vault-structure.md
Last active February 7, 2023 08:33
Cryptomator Vault Structure
.
├─ d
│  ├─ BZ
│  │  └─ R4VZSS5PEF7TU3PMFIMON5GJRNBDWA
│  │     ├─ 2tSaUkzXDEfe6fu3700xcIxYew==.c9r
│  │     ├─ Bge3MH6qrg7hYipzS3sb-y8UbJ8t3cHMGIQD.c9r
│  │     │  └─ dir.c9r
│  │     └─ Kza27s8G5RLyhyOD6UGUoWeDvw==.c9r
│ │ └─ symlink.c9r

Keybase proof

I hereby claim:

  • I am tobihagemann on github.
  • I am tobihagemann (https://keybase.io/tobihagemann) on keybase.
  • I have a public key whose fingerprint is B6A3 38A2 F6C1 4F09 6C1A 8525 69CE FAD5 1959 8989

To claim this, I am signing this object:

@tobihagemann
tobihagemann / THWeak.h
Created June 4, 2015 10:20
weakify & strongify
#define weakify(var) __weak typeof(var) THWeak_##var = var;
#define strongify(var) \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Wshadow\"") \
__strong typeof(var) var = THWeak_##var; \
_Pragma("clang diagnostic pop")