Research Article

An Improved Genetic Algorithm for Developing Deterministic OTP Key Generator

Table 3

A comparison between features of GRKG and IGRKG (PGU: previous generation updated, CGU: current generation updated).

Step numberFeaturesGRKGIGRKG (our approach)

(1)Size of secret key76
(2)Secret key parameters,
(3)Population size ()Size of the plaintextSize of the plaintext
(4)Number of genes in each chromosome88
(5)Method for generating initial populationLCG methodLCG method
(6)Initialization of parameter for evolution of first generation (via crossover) mod () mod ()
(7)Initialization of parameter for evolution of first generation (via mutation) mod ()
(8)Determination of number of chromosome pairs for crossover () (no default setting)
(9)Determination of number of chromosomes for mutation () (no default setting)
(10)Selection of index of chromosomes pairs for reproduction ( and )Set PGU() and
update it as mod () 
Then (mod)
and
update it as mod () 
Then (mod)
(11)Selection of index of chromosomes for mutation ()Set PGU() and
update it as mod () 
Then (mod)
and
update it as mod () 
Then (mod)
(12)Crossover modeSingle pointSingle point
(13)Computation of Crossover point
()
(mod) 8 (mod) 8
(14)Mutation modeSingle bit complement
(15)Computation of mutation bit position
()
(mod) 8 (mod) 8
(mean performance time) if
(16), 9.747 seconds2.432 seconds
Comparison of encryption and decryption function
(17) Encryption function (obtain ciphertext), (mod)
(18)Decryption function (recover plaintext)