



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This document introduces a method of encryption and decryption using Prime Weighted Graphs. It explains the definitions of Graph Theory, Encryption, Decryption, and Weighted Graphs. a step-by-step procedure for encryption and decryption, including generating an adjacency matrix and using two main keys for decoding the message. The proposed method is useful for safe and secure communication.
Typology: Summaries
1 / 6
This page cannot be seen from the preview
Don't miss anything!




Data security is one the main concerns these days because of the increas- ing cyber crime. There have been many different algorithms related to encryption and decryption of messages for eg. RSA, Advanced Encryp- tion System(AES) etc. But very few of them use graphs for encryption. I have tried a method which uses graphs for encryption particularly Prime Weighted Graphs.
Step 1: Write the corresponding ASCII value of each character of the message.
Step 2: Find the quotient(Q) and remainder(R) of the ASCII value with respect to the length(L) of the message.
Step 3: Encode the given ASCII value as QR.
Now we need to find the quotient(Q) and remainder(R) with respect to length(L)(14 in this case) for each of the values.
alphabet S e c r e t M e s s a g e ascii 83 101 99 114 101 116 32 77 101 115 115 97 103 101 Q 5 7 7 8 7 8 2 5 7 8 8 6 7 7 R 13 3 1 2 3 4 4 7 3 3 3 13 5 3 QR 513 73 71 82 73 84 24 57 73 83 83 613 75 73
We now convert each of the QR’s to the nearest prime number greater than it.
Value to be added 8 0 0 1 0 5 5 2 0 0 0 0 4 0 Resultant prime 521 73 71 83 73 89 29 59 73 83 83 613 79 73
So now we have encoded each character as a prime number and so now the next step is to draw a graph with random number of vertices and with the edges having their weights as these prime numbers. I will be using 7 vertices to draw the graph.
a (^) b
g
e (^) d
f c
Now the final step of the encoding procedure is to convert the above graph to its corresponding adjacency matrix.
The value in () represent the weight of the edge.
We send this adjacency matrix M to the receiver.
Decryption is also important so that the receiver gets the original message that we had sent. In this the case the two main keys needed for decoding the sent message are (a)The order of the edges of the graph.
Resultant prime 521 73 71 83 73 89 29 59 73 83 83 613 79 73
(b)The numbers which were added to get the prime numbers.
Value to be added 8 0 0 1 0 5 5 2 0 0 0 0 4 0
Step 1: Write the weight of each edge corresponding to the sequence of edges shown in the table above.
Step 2: Subtract the elements of the second decryption key from the corresponding prime numbers to get the message encoded in the QR form.
prime 521 73 71 83 73 89 29 59 73 83 83 613 79 73 Subtracted value 8 0 0 1 0 5 5 2 0 0 0 0 4 0 QR 513 73 71 82 73 84 24 57 73 83 83 613 75 73