Research Article

A Lightweight Cryptographic Algorithm Based on DNA Computing for IoT Devices

Algorithm 1

Steps of encryption algorithm based on DNA.
(1)Collecting data from IoT devices
(2)Converting the collected data into text of ASCII (American Standard Code for Information Interchange) code
(3)Checking the data size (counting the bits of data)
(1) if the data size mod 16 = 0 go to 4
(2) else do data size = [data size + (16 – (data size mod 16))]
(4)Dividing the collected data into a set of segments with size 16 bits such as (S0, S1, …, Sn−1)
(5)Generating the DNA sequence from imputing data
(i) Dividing the DNA sequence into a set of segments with size 128 bits to generate secret keys such as (K0, K1, Kn−1)
(6)Apply the bit of permutation procedure
(a) The permutation procedure for 16 successive bits such as the following:
  
(b) The permutation procedure is as follows
   
   
   
   
   
   
   
   
   
   
   
(7)Apply encryption process for each segment S by swapping the first four bits of (S0, …, Sn−1) with the last four bits of (K0, …, Kn−1), respectively
(8)Getting the encrypted data
(9)Resizing the encrypted data to get the original size