Research Article

Protein Motifs to Hide GA-Based Encrypted Data

Algorithm 1

GABEA.
Input: PlainText, K.
Output: En_text.//cipher text.
Begin.
(1)key = Generated_Key(K);
(2)L_P = length (PlainText);
(3)L_K = length(key);
(4)for i = 1 to L_P do
{//byte by byte.
Binary_PlainText[i] = char_to_binary(ascii(PlainText[i]);
BPT_XOR[i] = XOR_gate(Binary_PlainText[i],key[i]);
}
(5)i = 1; x = 0;
(6)While(i ≤ L_P)
{
Cut_type = x mod 4; //crossover type.
if(Cut_type =  = 0).
then one_point_crossover(BPT_XOR[i], BPT_XOR[i+1]);
else if(Cut_type =  = 1).
then two_point_crossover(BPT_XOR[i], BPT_XOR[i+1]);
else if(Cut_type =  = 2).
then multi_point_crossover(BPT_XOR[i], BPT_XOR[i+1]);
else uniform _crossover(BPT_XOR[i], BPT_XOR[i+1]);
for(j = 0; j < 2; j++).
En_text[j + i] = Not_gate(BPT_XOR[j + i]);//Mutation.
i = i+2;
x = x+1;
}//while.
Return En_text;
End.//Algorithm.