The encoding function is defined in the file encodeMessage.sci with the following Scilab instructions: function y=encodeMessage(fileNameIn,fileNameOut,encodingType) The message should be the same with the initial one from the file fileTextWord.txt. The result of the decoding is stored in the file fileTextDecoded.txt. To decode the message we’ll use the function decodeMessage(), which is reading the encoded message text file and converts back to Latin characters text. The encoded messages is going to be saved in the text file fileTextEncoded.txt. The function encodeMessage() will read the content of the text file and encode the character in either octal, hexadecimal or binary format. Our text message to be encoded will be defined in the text file fileTextWord.txt. Image: Text message encoding-decoding diagram
0 Comments
Leave a Reply. |