Hill cipher encryption-decryption. PSEUDOCODE Encryption To encrypt a message using the Hill Cipher we must first turn our keyword into a key matrix (a 2 x 2 matrix for working with digraphs, a 3 x 3 matrix for working with trigraphs, etc). We also turn the plaintext into digraphs (or trigraphs) and each of these into a column vector. We then perform matrix multiplication modulo the length of the alphabet (i.e. 26) on each vector. These vectors are then converted back into letters to produce the ciphertext. Step 1: We shall encrypt the plaintext message "short example" using the keyword hill and a 2 x 2 matrix. The first step is to turn the keyword into a matrix. If the keyword was longer than the 4 letters needed, we would only take the first 4 letters, and if it was shorter, we would fill it up with the alphabet...
Polyalphabetic cipher encryption- decryption. PSEDOCODE: Encryption Ci=(Ti +Ki)modn Ci - i-th character of the ciphertext Ti - i-th character of the open text Ki - i-th character of the key phrase (if the key phrase is shorter than the open text, which is usual, than the keyphrase is reapeated to math the length of the open text) m - length of the alphabet 1. To encrypt the open text, we have to sum together the first letters of the open text and key phrase, the second letters, third and so on. 2. To encrypt the n-th letter of the open text (assume “L“) using the Vigenère square 3. we find the letter on the horizontal axis of the table and we find n-th letter of the key phase on the vertical axis (assume “T“) 4. At the intersect...