Research Article
Protein Motifs to Hide GA-Based Encrypted Data
| Input: En_text,K; | | Output: PlainText; | | Begin. | (1) | key = Generated_Key(K); | (2) | L_P = length (En_text); | (3) | L_K = length(key); | (4) | i = 1; x = 0; | (5) | While(i ≤ L_P) | | { | | for (j = 0; j < 2; j++). | | (5.1)Out_Not[j + i] = Not_gate(En_text[j + i]);//complement the cipher text | | (5.2)Cut_type = x mod 4; | | if (Cut_type = = 0). | | then one_point_crossover(Out_Not[i], Out_Not[i+1]); | | else if(Cut_type = = 1). | | then two_point_crossover(Out_Not[i], Out_Not[i+1]); | | else if(Cut_type = = 2). | | then multi_point_crossover(Out_Not[i], Out_Not[i+1]); | | else uniform_point_crossover(Out_Not[i], Out_Not[i+1]); | | i = i+2; | | x = x+1; | | }//while. | (6) | j = 1; | (7) | for i = 1 to L_P do | | { | | Out_XOR[i] = XOR_gate(Out_Not[i],key[j]); | | Dec[i] = binary_to_decimal(ascii(Out_XOR[i]); | | If(Dec[i]>257) then Dec[i] = Dec[i] mod 256; | | PlainText[i] = decimal_to_char(ascii(Dec[i])); | | If (j = = L_K) then j = 1; | | Else j = j+1; | | }//for. | | End.//Algorithm. |
|