Home / Expert Answers / Computer Science / a-in-this-exercise-we-introduce-you-to-hill-cipher-in-this-cipher-we-convert-our-message-to-num-pa172

(Solved): a) In this exercise, we introduce you to Hill cipher. In this cipher, we convert our message to num ...



student submitted image, transcription available below
a) In this exercise, we introduce you to Hill cipher. In this cipher, we convert our message to numbers, just as in affine cipher. However, instead of encrypting character by character, we encrypt pairs of characters by multiplying them with an invertible matrix with co-efficients in . Here is an example: Suppose we want to ENCRYPT "ALLISWELL". Since we require the plaintext to have even number of characters, we pad the message with the character ' '. We break up the message into pairs of characters AL, LI, SW, EL and LX. We convert each pair of characters into a pair elements in as follows: Next, we choose an inveritble matrix with coefficients in , for example, . This matrix has determinant and is a unit in with inverse . We write each pair of elements in as a column vector and multiply it by : We then convert each pair of numbers to a pair of characters and write them down. In this example, we get the cipher text "LSPFYGXUEN" corresponding to the plain text "ALLWELL". To decrypt, we convert pairs of characters to pairs of numbers and multiply by and we have Decrypt the text "TWDXHUJLUENN" which was encrypted using the Hill's cipher with the matrix as the encryption matrix.


We have an Answer from Expert

View Expert Answer

Expert Answer



We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe