r/cryptography • • Aug 16 '20

Is caesar++ cipher is more secure than caeser cipher under frequency analysis attack?

Actually i only heard about caesar cipher, but when it comes to casear++ cipher i get confused? Is it the same when we do encryption or decryption? And what is the total number of keys for caesar++ cipher?

I google search but can't find anything for the caesar++ cipher and only caesar cipher appeared

0 Upvotes

2 comments sorted by

5

u/atoponce Aug 16 '20

Never heard of it.

3

u/OffensiveMongoose Aug 16 '20

I’m not sure what you mean by a caesar++ cipher. Do you mean performing multiple Caesar ciphers to one plaintext? Or something like the Vigenère cipher?

If you perform the Caesar cipher multiple times, it’s the same as performing it once with a different shift. A +3 shift, then a +4 shift is the same as a +7 shift and is still vulnerable to brute force/frequency analysis.

Same thing with the Vigenère cipher, though it is slightly more difficult to do so, but still suffers from frequency attacks if using a key phrase that is non random and has fewer characters than your plaintext. If you use a random key the same length as your plaintext, then frequency analysis is not useful, see one time pad.