Hill Cipher program in C++ language
#include<iostream> #include<math.h> using namespace std; float encrypt[2][1], decrypt[3][1], a[2][2], b[2][2], mes[2][1], c[2][2]; void encryption(); //encrypts the message void decryption(); //decrypts the message void getKeyMessage(); //gets key and message from user void inverse(); //finds inverse of key matrix int main() { getKeyMessage(); encryption(); decryption(); } void encryption() { int i, j, k; for(i = 0; i < 2; i++) for(j = 0; j < 1; j++) for(k = 0; k < 2; k++) encrypt[i][j] = encrypt[i][j] + a[i][k] * mes[k][j]; cout<<"\nEncrypted string is: "; for(i = 0; i < 2; i++) ...