Use Cypher C please.
This is the PSUEDOCODE that i did for it:
Ask the user to input a message M
This message length if greater then 2500 character
Display “maximum message length is exceeded”
Else
Define a cypher C 0,1,2, … 9 ,“space”,U,O,I,E,A,Z,Y,X,…….D,C,B
Create a vector of numbers N 1 to 217 with step 6
For i = 1 to M length
Index Find M(i) location in C
Encrypted message NM(i)N(Index)
End for
Reshape vector NM to a matrix EMM
Display ”Original Message”
Display M
Display “Numerical Message”
Display NM
Display “encoded matrix”
Display EMM
Read image to OIM
Show the original image OIM
Ask user for the row position RO
Ask the user for the column position CO
If RO greater then OIM rows -50 or CO greater then OIM columns -50
Display “invalid position”
Else
Define encoded image EIMOIM
For r=1 to 50
For c=1 to 50
EIM(RO+r,Co+c)EMM(r,c)
End for
End for
Show encoded image EIM
Extracted encoded message matrix EEMMEIM(RO to RO+50, CO to CO+50)
Define extracted encoded message EEMreshape matrix EEMM to a vector
For i = 1 to M length
Index Find EEM(i) location in N
decrypted message DM(i)C(Index)
End for
Display “decoded message”
Display EEM
Display ”descripted message”
Display DM
Do not use functions
User Input should be message not image
Should mention the check for length of message and what should be done
if it is greater than 2500 or less than 2500