I have a json data-interchange format where I send messages like the following:
{
"revision": { "client": "f0ede1da-7314-4e59-99f7-a3a71dcab11f", patch: ["hello world", 0] },
"client": "f0ede1da-7314-4e59-99f7-a3a71dcab11f",
"version": 101
}
I want to encrypt the value of revision
but I need to send parts of the message unencrypted to ensure causal, once-only delivery of messages.
If I were to encrypt only the revision
part of the message so that the result payload looks something like:
{
"revision": /* CIPHERTEXT */,
"client": "f0ede1da-7314-4e59-99f7-a3a71dcab11f",
"version": 101
}
and the client uuids
in the unencrypted metadata and encrypted revision matched in almost 90% of cases, would this make the encryption easier to crack?