You are on page 1of 4

Arab Academy for Science, Technology and Maritime Transport (AASTMT) College of Engineering and Technology Department of Communications

and Electronics

Advanced Engineering Mathematics

Assignment 1 Coding message using matrices

Name: Mahmoud Sadat Badran Ibrahim ID: 13 220 199

Coding: Its a technique of hiding the content of a text, voice conversation or any Kind of data pass through any communication system, and coding used Mainly to secure Information.

ASCII codes represent text in computers, communications equipment, and other devices that use text. Most modern character-encoding schemes are based on ASCII.
CHAR @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ DEC 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 HEX 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F CHAR ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ 0 DEC 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 48 HEX 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 30

In this example I will use the matrices and ASCII code to Encode and Decode simple text consist of one word.

System components: 1-The word Mahmoud. 2- Key for coding. 3- Operations of coding The key used for the coding will be a Matrix with size of 3*3
2 1 5 3 6 8 4 9 11

*Operation of coding:
A- Encoding:
M 1- Insert the word in a matrix. Mahmoud h Note: in decoding the zeros will be neglected 0 a 0 m o u d

2-Convert characters to its ASCII equivalent from table in previous page.


M h 0 a 0 m o u d

77 97 48 104 109 111 48 117 100

3- Make transposition for the converted matrix.


77 97 48 77 104 48 104 109 111 97 109 117 48 111 100 48 117 100

4- Multiply the transpose matrix by the key.


2 1 5 658 1133 1745 77 104 48 97 109 117 * 3 6 8 = 989 1804 2644 4 9 11 829 1614 2228 48 111 100

5- Now I have encrypted word in form of numbers that has no meaning. I can convert each number in that matrix to its binary equivalent to send it through any digital system.

B- Decoding: 1- Get the inverse of the key to use it in the decode process.
2 1 5 3 17 11 3 6 8 0.5 1 0.5 4 9 11 1 . 5 7 4 . 5

2-Multiply the encrypted matrix by the inverse key matrix.


658 1133 1745 3 17 11 77 104 48 989 1804 2644 * 0.5 1 0.5 = 97 109 117 829 1614 2228 48 1 . 5 111 7 100 4 . 5

3- Make transposition for the result matrix.


77 97 48 77 104 48 97 109 117 104 109 111 48 117 100 48 111 100

4- Convert Numbers to its ASCII equivalent Characters.


77 97 48 M 104 109 111 h 48 117 100 0

a 0 m o u d

5-Exectract the Characters from the matrix and neglect the zeros.
M h 0 a 0 Mahmoud m o u d

You might also like