Skip to content

Instantly share code, notes, and snippets.

@pablojan
Created August 26, 2017 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pablojan/2d8cc41adf5a5194f98eb7648d09a52a to your computer and use it in GitHub Desktop.
Save pablojan/2d8cc41adf5a5194f98eb7648d09a52a to your computer and use it in GitHub Desktop.
Mods in Wave CS protocol to send encrypted wavelet data

Pending work must be done in decryptDocInitialization() method of RemoteWaveViewService.java By now, this method just put asterisks as fake decrypted text.

/**

  • Decrypt operations of a document initialization using encrypted data of the document.
  • @param encryptedContent
  • @param decryptedDocData
  • @return */ private static DocInitialization decryptDocInitialization(DocInitialization encryptedContent, DocumentEncryptedData decryptedDocData) { ... }
@pablojan
Copy link
Author

Here an example of the encrypted data received in the Wave, see field 8 on the ProtocolWaveletUpdate message selected in the websocket tab. This message is defined in the ProtoBuffer file of the Wave CS protocol RPC src/proto/proto/org/waveprotocol/box/common/comms/waveclient-rpc.proto

captura de pantalla de 2017-08-26 13-18-31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment