How do you use an encrypted database + syncing?

Hi,

I set up an encrypted DB for financial and tech stuff. I then set it to sync with CloudKit and set up encryption there.

I then set up a second Mac, and selected the DB in the cloud, but the created database is not encrypted on my second Mac. This is unexpected.

How do I fix this? It doesn’t appear I can just encrypt the local DB on the second Mac. I looked in the documentation and encrypted DB are discussed, but there is nothing about syncing them I can find. I’d really appreciate a step by step:

  1. How to get out of state with my current setup
  2. How this is supposed to be done in the future to ensure it works as expected.

Yes, that is the correct behavior. There are certainly use cases where a database would be encrypted on one device but not necessarily on another.

Delete the imported, unencrypted database.
Control-click the remote database and import it as an encrypted database. Note you have to set the size and encryption key for that machine. While it’s typical that would be the same on both, they technically don’t have to match (though size certainly would be important to keep the same).

This behavior will change in DEVONthink 4 and the natural import of an encrypted database will also be encrypted, with unencrypted being the secondary option.

2 Likes

Ah, OK, thanks. Note I’m running DEVONthink 4 beta, so the behavior doesn’t appear to have changed yet :slight_smile:

This works only if the sync store was created by version 3.9.9 or later, older versions do not include the necessary information.

Gotcha. Well, I started from scratch with 4.0 beta one on both devices. So either it’s not done yet or there’s a bug?

I’m seeing no issue here.
Double-clicked an encrypted database to import it

Strange. If I right click I get an option to import encrypted database. But if I double click I just get this.

And this is a new encrypted database from DT4?
Can you post a screencap of it in DEVONthink on the other Mac?

Yes, I created this last Thursday in DT4.0 beta 1.