File encryption: where does it take place?

I’m looking for documentation on file encryption on selfhosted OnlyOffice Docs / documentserver.
When I Google for encryption on OnlyOffice docs, I only get results for DocSpace, where end-to-end encryption is possible in private spaces.
But I’m specifically looking for documentation on how file encryption works in documentserver, not in DocSpace.

I would like to collaborate on a document in documentserver (via Nextcloud). I can encrypt the document in the browser editor with a password, where it uses AES/SHA-512 to encrypt the document, just like a local desktop editor would do (like MS Office). So far so good.

But here is the thing: I would like to make it fully end-to-end encrypted. Documentserver should not have access to the file contents. Therefore my question: where does the document encryption take place? Is it all locally in the webbrowser, or does the file password gets sent to the documentserver at some point (either plaintext or hashed)?

Hello @tofu5

Document Server does not support end-to-end encryption just yet.