In this section, the data is secured using the standard encoding (
Table 1). From the set of values, matrices are constructed by using basic modular arithmetic. It is important to note that the elements of sets constructed in these algorithms can repeat and are ordered. We begin with the preliminaries first:
3.1. Preliminaries
Cryptography is the art of transforming original messages into an incomprehensible form, ensuring that only authorized parties can access the information. This transformation is achieved through mathematical techniques and algorithms designed to encrypt (encode) data securely. The entire process of secure communication is facilitated by a framework known as a cryptosystem, which comprises five essential components: the key, the encryption algorithm, the decryption algorithm, the cipher-text, and the plain-text.
The plain text is the original message sent by the sender, while the cipher text is the secret message or the encrypted version of the plain text. The encryption process involves converting the plain text into cipher text using a cryptographic algorithm and a key. Conversely, decryption is the process of converting the cipher text back into plain text using a key. The cryptographic algorithm is a mathematical algorithm employed to perform both encryption and decryption. A key, which is a secret value used by cryptographic algorithms, is crucial for encrypting and decrypting data. To ensure the security of the encrypted information, keys must be kept confidential.
Cryptographic techniques can be broadly classified into two categories based on key distribution: symmetric key cryptography and asymmetric key cryptography.
Symmetric key cryptography, also known as secret key cryptography, employs the same key for both encryption and decryption. This method involves using a single encryption key for electronic communication, making use of a secret key and numerical computation to secure the data. In symmetric key cryptography, both participants use the same key K to encrypt and decrypt data, thereby protecting it from unauthorized access.
On the other hand, asymmetric key cryptography, also known as public key cryptography, utilizes a pair of keys: a public key and a private key. In this method, the public key is used for encryption, while the private key is used for decryption. These keys are essentially large, non-distinguishable numbers that have been generated to work together. This form of cryptography allows for more secure and flexible communication, as the public key can be freely distributed while the private key remains confidential.
By combining the strengths of symmetric and asymmetric key cryptography, modern cryptographic systems can provide robust security for a wide range of applications, ensuring the confidentiality, integrity, and authenticity of the information being transmitted.
3.1.1. Encoding Tables
There are two types of encoding table used in this work to encrypt/decrypt the given data. One is the standard encoding table and the other is the Pythagorean encoding table.
Table 1.
Standard Encoding Table
Table 1.
Standard Encoding Table
| A |
B |
C |
D |
E |
F |
G |
H |
I |
J |
K |
L |
M |
| 1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
| N |
O |
P |
Q |
R |
S |
T |
U |
V |
W |
X |
Y |
Z |
| 14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
Table 2 displays the Pythagorean numbers corresponding to the alphabets and
Table 3 illustrates how the numbers are connected to the alphabets in order to allow for uniqueness in vertex labeling of a graph.
The details of the encryption and decryption algorithm are listed below.
3.4. Scheme 3: Enhanced Cipher-Text Length Optimisation and Compact Keys for Two-Layer Cryptography Scheme
The algorithm of Scheme 3 integrates advanced mathematical operations to create a cipher from the plain text. The detailed process involves partitioning values, interchanging digits, and constructing tridiagonal matrices. These steps are designed to transform the plain text into an encrypted form that is challenging to decipher without the correct keys. Furthermore, the decryption algorithm ensures that the original message can be accurately reconstructed, maintaining the integrity of the data. The systematic approach of Scheme 3, combined with its use of tridiagonal matrices and symmetric keys, marks a significant improvement over previous schemes, offering enhanced security and complexity.
| Scheme 3 : Description |
Encryption
Let P be the plain text of length n.
Let be the set of values corresponding to the alphabets.
Partition the values of in two parts such that is the set of values in that are at ten’s place and is the set of values in that are at unit’s place.
Construct a new set from the set by interchanging the values.
Divide each element of by 26 to get the sets and that are the sets of quotients and the remainders, respectively.
Find the alphabets from the Table 1 corresponding to each element of the set . Let the plain text be .
From Table 3, find the values corresponding to each alphabets of and let be the ordered set containing all the values.
Divide each element of by 10 and let and are the sets of quotient and remainder, respectively.
Multiplying by 10 and then add to the corresponding component of . The resulting values will be stored in an ordered set .
Add the corresponding element of and and denote the resulting set by .
Divide each element of by n and let and are the respective sets of quotients and remainders, respectively.
-
Construct the cipher as follows:
Construct the cipher as tridiagonal matrix with main diagonal set .
The lower sub-diagonal set as entries from the first elements of the set .
The entries of the upper sub-diagonal are the last elements of the set .
The cipher text is obtained.
|
Decryption
Let the receiver has received the message as a matrix of order together with set of symmetric keys and and 1st entries of and respectively.
Arrange the diagonal entry in a set to decrypt .
Arrange the lower sub-diagonal entry of matrix received as first elements and the key of entry of as last n element in a set to decrypt .
Arrange the upper sub-diagonal entry of matrix received as last elements and the key of 1st entry of as first element in a set to decrypt .
Multiplying each element of by 10 and add it to the corresponding element of the symmetric key . Let us denote the resulting set as .
Find the alphabet corresponding to each value of from the Table 3.
Find the values corresponding to each alphabet from the Table 1 to get .
Multiply each component of the symmetric key by 26 and add in the previous set which is and then subtract 1 from each element to decrypt .
Divide each element of by 10 to decrypt the sets and which are the sets of quotients and remainders, respectively.
Multiply each element of by 10 and then add them to the corresponding element of to decrypt .
Find the alphabet corresponding to each element of from Table 3.
The message is decrypted.
|
Example 3.
Plain text gives and . Construct a new set from the set by interchanging the values and the corresponding sets and by dividing by 26. Using Table 1 on gives . Using Table 3, on obtain and . multiplying by 10 and then adding to the corresponding component of yields . and thus make the cipher as:
For decryption, receive the cipher M together with symmetric keys and and 1st element of and respectively. , 6th element of is 2 and 1st element of is 0. Here .
Arrange the diagonal entry in a list to decrypt . Arrange the lower sub-diagonal entry of matrix M as first 5 elements and the key of 6th entry of which is 2 as 6 element in a set to decrypt . Arrange the upper sub-diagonal entry of matrix M as last 5 elements and the key of 1st entry of which is 0 as 6 element in a list to decrypt . and Multiplying the symmetric key by 10 and adding to the corresponding element of to decrypt the .Which on using Table 3 gives and in turn use of Table 1 yields . Multiply each element of by 26 and add in the previous set which is and then subtract 1 from each element to obtain the set and then divide each element of by 10 to and . Multiply each element of by 10 and then add them to the corresponding element of to get the . Find the alphabets corresponding to each element of from the Table 3.
, and the original message is decrypted.
3.5. Scheme 4: Encryption and Decryption Using Tridiagonal Matrices and Disguised Key
The encryption algorithm of Scheme 4 begins by mapping plain text characters to their corresponding numerical values. These values are partitioned, transformed, and rearranged through multiple steps involving division by constants, multiplication, and addition operations. The resulting values are used to construct a tridiagonal matrix, which serves as the cipher text. Decryption, on the other hand, involves reversing these operations to accurately reconstruct the original message. The use of tridiagonal matrices and symmetric keys not only enhances the encryption process but also ensures that decryption is precise and reliable. This scheme stands out for its methodological rigor and the robust security it provides.
| Scheme 4: Description |
Encryption
Let P be the plain text of length n.
Let be the set of values corresponding to the alphabets.
Partition the values of in two parts such that is the set of values in that are at ten’s place and is the set of values in that are at unit’s place.
Construct a new set from the set by interchanging the values.
Divide each element of by 26 to get the sets and that are the sets of quotient and the remainders respectively.
Find the alphabets from the Table 1 corresponding to each element of the set . Let the plain text be .
From Table 3, find the values corresponding to each alphabets of and let be the ordered set containing all the values.
Divide each element of by 10 and let and are the sets of quotient and remainder, respectively.
Multiplying by 10 and then add to the corresponding component of . The resulting values will be stored in an ordered set .
Add the corresponding element of and and denote the resulting set by .
Divide each element of by 11 to get the set that is the set of quotient.
-
Construct the cipher as follows:
- (a)
The main diagonal will be the set .
- (b)
The lower sub-diagonal set as entries from the first elements of the set .
- (c)
The entries of the upper sub-diagonal are the last elements of the set .
We obtained the cipher.
|
Decryption
Let the receiver has received the message as a matrix of order together with two symmetric keys of and 1st entries of and , respectively.
Arrange the diagonal entry in a set to decrypt .
Arrange the lower sub-diagonal entry of matrix received as first elements and the key of entry of as last n element in a set to decrypt .
Arrange the upper sub-diagonal entry of matrix received as last elements and the key of 1st entry of as first element in a set to decrypt .
Subtract each element of from the corresponding elements of and the resulting set will be denoted by .
Find by multiplying each element of by 10 and then add it to the corresponding element of .
Find the alphabets corresponding to each value of from the Table 3.
Find the values corresponding to each alphabet from the Table 1 to get .
Multiply each element of by 26 and add in the previous set to decrypt .
Divide each element of by 10 to decrypt the sets and which are the sets of quotients and remainders, respectively.
Multiply each element of by 10 and then add them to the corresponding elements of to decrypt .
Find the alphabets corresponding to each element of from Table 3.
Original plain text is decrypted.
|
Example 4.
Plaintext gives and . Interchanging the values of gives , and also by dividing 26 we have . Using Table 1 on gives . Table 3, on yields and . Multiplying by 10 and then add to the corresponding element of to obtain. Next divided by 11, . This allows construction of cipher as
For decryption, on receiving the cipher together with symmetric keys: 6th and 1st element of and , respectively. Using 6th element of is 2 and 1st element of is 0. Here, . Arrange the diagonal entry in a set to decrypt . Arrange the upper sub-diagonal entry of matrix M as last 5 elements and the key of 1st entry of which is 0 as 6 element in a set to decrypt . We now have and . Subtracting from , . Multiplying by 10 and adding to the corresponding element of , gives and use of Table 3. Encoding this with Table 1 produces . Now multiply each element of by 26 and add in the previous set which is to obtained the set and . Multiply each element of by 10 and then add them to the corresponding element of to get the set . Table 3 gives , and the message is decrypted.
Table 4.
Complexity Analysis: Encryption in is of linear order, while all others due to involvement of square matrices have square order complexities.
Table 4.
Complexity Analysis: Encryption in is of linear order, while all others due to involvement of square matrices have square order complexities.
| |
Time |
Space |
| |
Encryption |
Decryption |
Encryption |
Decryption |
|
|
|
|
|
|
n |
|
|
|
|
|
|
|
|
|
|
|
|
|
3.6. Complexity Analysis
We only give details of time-complexity and space-complexity for Scheme 1.
Encryption: Assigning the length
n to the plaintext
P and drawing the encryption table both take
time. Extracting the set
, partitioning
into
and
, constructing
, partitioning
into
and
, and constructing the diagonal matrix
all involve
operations. Constructing the matrix
, adding
and
, and constructing the final cipher list require
time. Hence the total time complexity for the encryption process is:
Decryption: Receiving the list takes
time, while counting the elements in the cipher, taking the square root, and constructing the matrix
each require
. Arranging diagonal entries into an array, constructing
, subtracting arrays to obtain
, multiplying and adding elements to form
, dividing to get
and
, reconstructing
, and finding corresponding alphabets all involve
operations. Therefore the total time complexity for the decryption process is:
Hence, the overall time complexity of Scheme 1 is:
All other Schemes may be analysed in a similar fashion. Complete data, thus obtained is shown in
Table 4.