182k views
5 votes
Using the vigenere cipher, does the length of the key matter? for example, if one key is length 5 and another is 20, does one produce a "better" encrypted message than the other, or is it basically the same? yes or no? explain your reasoning.

User Rsjaffe
by
6.1k points

1 Answer

5 votes
No.

In my opinion, knowing the length of the key is not very important. Even if we knew the length, we still might have to go an extra mile and try every possible letter combination which can be tedious since it is a very large number of possibilities. Assume the key length is 20 letters, then there are 26^20 possible keys.
Increasing the size of the key can make the Vigenere cipher hard to crack and thus YES; the larger the key, the better the encrypted message.
User Ludonope
by
6.9k points