DESCRIPTION
In Europe, instead of the Vigenere cipher, the very similar cipher
called the Gronsfeld cipher was used. Instead of a keyword, the cipher utilises a keycode consisting of
numbers. The rest of the cipher is the
same. EXAMPLE Plaintext: CAMPEAU Gronsfeld keycode: 214
The advantage of the Gronsfeld cipher over the Vigenere cipher is that
there is not keywords that could easily be shared or stolen (as a number code
is harder to remember and share). On
the flip side, the Gronsfeld offers less encoding options so is therefore a
little more vulnerable to being broken. WORK QUESTION 1 enc (word, keycode) dec (word, keycode) Test your
code. Feel free
to use any of your past code in here. QUESTION 2 The
following sentence has been encrypted using the Gronsfeld
cipher with keycode 13579. Use your program to decrypt it. JINUMZRZYUBFPVOGDNAQELXADSENUP |