Research Article

An Improved Genetic Algorithm for Developing Deterministic OTP Key Generator

Table 5

Working of the IGRKG method (U: updated, SPE: selected pad element).

Initially . Compute
Update as (mod) 256Index
Element selection: (mod) 10Pad state76543210SPE

IGRKG: efficient transformation of an initial pad to a more-obscured pad
Initial pad:
(52, 11, 62, 61, 56, 31, 162, 49, 252, 243)
mod (256) = 198 (mod) 10 = 8 198Before crossover1111110 0 252
mod (256) = 229 (mod) 10 = 9 2291111001 1 243
mod mod (8) = 1After crossover 1 1 1 1 0 0 1 0 242
That is, starting point for mating is 1 1 1 1 1 1 1 0 1 253
(52, 11, 62, 61, 56, 31, 162, 49, 242, 253)
mod (256) = 128 (mod) 10 = 8 128Before crossover11110 0 1 0 242
mod (256) = 135 (mod) 10 = 5 13500011 1 1 1 31
mod mod (8) = 3After crossover 0 0 0 1 1 0 1 0 26
1 1 1 1 0 1 1 1 247

Initially . Compute
Update as (mod) 256
Element selection: (mod) 10(52, 11, 62, 61, 56, 247, 162, 49, 26, 253)

mod (256) = 170 (mod) 10 = 0 170Before mutation 0 0 11 0 1 0 0 52
mod mod (8) = 4After mutation 0 0 1 0 0 1 0 0 36
(36, 11, 62, 61, 56, 247, 162, 49, 26, 253)
mod (256) = 89 (mod) 10 = 9 89Before mutation 1 11 1 1 1 0 1 253
mod () = (253) mod (8) = 5After mutation 1 1 0 1 1 1 0 1 221
After first generation:
(36, 11, 62, 61, 56, 247, 162, 49, 26, 221)
Repetition of the above process iteratively (six more times) results in the following pad state along with updated :
2nd-generation input: and Pad: (36, 11, 62, 61, 56, 247, 162, 49, 26, 221)
3rd-generation input: and Pad: (52, 11, 62, 61, 56, 247, 218, 49, 26, 133)
4th-generation input: and Pad: (244, 11, 62, 29, 57, 55, 218, 49, 130, 29)
5th-generation input: and Pad: (244, 3, 62, 29, 59, 55, 24, 219, 130, 53)
6th-generation input: and Pad: (244, 187, 62, 29, 11, 55, 24, 219, 2, 21)
7th-generation input: and Pad: (100, 187, 62, 157, 11, 55, 24, 3, 218, 53)
Pad state and updated after 7th generation: and Pad: (116, 187, 52, 221, 11, 183, 24, 3, 154, 63)
Performance time: 0.743 msec.