How does Joplin Cloud hanle encryption when Note or Notebook is shared?

It's all in this post (which I should probably copy somewhere else for documentation):