Score:1

What is the name of this kind of cipher? (algorithm and description provided)

gb flag

I have a cipher algorithm that doesn't seem to be one of the "well known" ones I could find. I expect someone has already come up with this and I just don't know the name. Hoping one of you can point me in the right direction.

I don't think this falls foul of Should we allow questions about amateur ciphers? - but happy to be corrected.

Concept

Difficulty in recovering the original document from a compressed form that has been truncated. This is a symmetric-key cipher.

Algorithm

Example implementation: https://jsfiddle.net/i_e_b/8vd6efp0/

  1. Key is values [0..255], shuffled; thus the key is always 256 bytes long.
  2. Plain-text is appended to the key (in the example, randomised padding is added between key and plain-text)
  3. A back-reference compression algorithm is run against the result of step 2. This results in a set of (distance, length) pairs.
  4. The pairs are encoded as the output cipher-text

Step-through of a sample

Backstory

This came about from some analysis of the "aCROPalypse" vulnerability, how the original images could be recovered, and what conditions prevented parts of the image being recovered. I've searched around for it, but can't find anything.

fgrieu avatar
ng flag
Looks like this cipher has it's ciphertext much larger than it's plaintext, which is considered extremely undesirable. Thus I very much doubt this is commonly used, or has an academic name. The question could be closed under the standard reason _"Requests for analyzing ciphertext, finding hash preimages, identifying or decoding some code, or even reviewing full cryptographic designs are off-topic, as the results are rarely useful to anyone else and/or would be too long for this site."_, Update: Granted, my "ciphertext much larger" is for random arbitrary messages.
Iain Ballard avatar
gb flag
Fair enough -- thanks anyway. It seems to give results within 10% of the plain-text for short English messages, and smaller than the plain text for long English messages (it's basically half of the LZ family of compression algorithms). Are there any academic-named ciphers generally based on compression, tree-decomposition, or back-referencing? I couldn't find any.
Score:2
in flag

It seems this leaks a ton of information on the plain text. In particular if certain sections of the plain text repeat.

The initialization you suggested of a random permutation of 256 different characters seems to make it worse. It has no repetitions so it seems to me if we decode your cipher text with any key. we will get the plain text back up to a substitution cipher which should be broken trivially.

I doubt this has a name in the literature.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.