Cryptomator changes existing files

Hello,
I do next

  1. Create vault, unlock it
  2. Add few files (a, b, c)
  3. Lock
  4. Save copy of current vault.

after that
5. Unlock vault, delete all files (a, b, c)
6. Add these files again (from the origin source)
7. Lock

  1. diff -qr vault vault-copy
    and I see that three files (in case a, b, c files) will have same names, but different content…

The question: is it awaited behavior?

Thanks

So you compared the encrypted files? Yes, that is expected because a new secure random “content key” and “nonce” are generated with each file change, see the diagram here: https://docs.cryptomator.org/en/latest/security/architecture/#file-header-encryption

Thank you for quick response, it’s clear now.