My input at the sender side:
the user is asked to enter the key which has to be a sequare matrix K (nxn) .
--> I need to get the dimension of the key matrix.
the user then enters the plain text.
I need to convert the letters into numbers and store them in matrix P (nxm).
( A --> 1 , B --> 2 , ....., Z --> 26 , ... )
if the length of the plaint text is less than n*m, i need to fill the matrix with zeros.
Then some manipulations on the K matrix and P matrix have to be done to get the ciphertext matrix and convert the numbrs back into letters.