Question: C++: The Hill Cipher is a cryptographic algorithm that uses matrix inversions to decrypt ciphertext into plaintext. The original message, called the plaintext, is converted

C++:

The Hill Cipher is a cryptographic algorithm that uses matrix inversions to decrypt ciphertext into plaintext. The original message, called the plaintext, is converted into matrix form. We will call this matrix P. We then multiply it by a key in matrix form, called matrix K. The product of P and K is the encrypted message. Assuming the intended recipient knows K, it can decrypt the message by multiplying the encrypted message by K-1.

Plaintext Message = P

Encrypted Message = PK

Decrypted Message = (PK)K-1 = P

Your task is to write a C++ program that calculates the determinant and the inverse of an invertible 2 x 2 matrix. Your program should prompt the user for the matrix entries and display the determinant and the inverse entries. Much of the program is written for us. We need to fill in the blank and do some code analysis to see what is going.

Complete the missing code segments that are highlighted. Compile and execute the program and provide a screenshot of your running program.

C++: The Hill Cipher is a cryptographic algorithm that uses matrix inversions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!