Encryption

Starting from version 5.6, ONLYOFFICE Desktop Editors offers support for Private Rooms, secure workspace where every symbol you type is encrypted end-to-end even if you co-edit documents in real time. Using ONLYOFFICE Desktop Editors makes it possible to encrypt and decrypt the data on the client, ensuring endpoint security.

Processing desktop editors commands

Declare the cloudCryptoCommand function to process messages from the desktop app:

window.cloudCryptoCommand = function cloudCryptoCommand(type, params, callback) {}

type

Defines the command type:

  • encryptionKeys - to save private and public keys to the parameters;

  • relogin - to re-enter the portal after unsuccessful keys decryption;

  • getsharingkeys - to request for the public keys of all the users who have access to the file. The keys will be transferred via callback:

    callback({
      keys: [{
        userId: "78e1e841",
        publicKey: "yyy",
      }],
    })
    

Type: string

params

Defines the parameters that are passed to the method.

Type: string

callback

Defines the result that the method returns.

Type: string

Explore the following pages to find out which commands need to be used for:

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).