

Below is a C++ program that an encoding of a message using matrix Multiplication. This can also be used to decode messages, any codes not.

#How to encode a message using matrix code
This calculator enables you to code messages by substituting values against letters, numbers and punctuation. Message encoding using matrix multiplication in C++. Well, whatever your desire the Encoder/Decoder can help you to build encoded messages which you can share for other to decode later. We included header file conio.h to use getch() function which is used to stop the output screen from blinking. The Encoder is set at default with a simple numerical algorithm of a=1, b=2 and so on. Encoding is performed between a given matrix and key matrix using matrix multiplication. If all codes are numeric, the total of the values will be displayed (for information only, can be used as a checksum) Note - The space and comma characters are not coded, the space is not changedĪnd Commas are used to separate the characters (this is necessary, for numbers in particular) This can also be used to decode messages, any codes not recognised are displayed in the "unrecognised" section There are two random code buttons, one to assign numbers against the characters and one to assign characters. The default values are A=1, B=2, C=3 etc. Fancy yourself as the new James Bond? Think you can build your own Enigma Machine? Well, whatever your desire the Encoder/Decoder can help you to build encoded messages which you can share for other to decode later.
