Skip to main content
. 2021 Jan 4;21(1):282. doi: 10.3390/s21010282
Algorithm 1. Image IP, EHR, and WM Encryption using HC, and LSB embedding of data bits in DCP
Input: Grayscale M × N Secret Image, a hyperchaotic map with the initial values s1, s2, s3, s4 and control parameters a, b, e, t, l1, l2, l3.
Output: Stego Image (SI) of size M × N
  BEGIN
  1. s1, s2, s3, s4 ← initial condition for hyperchaos

  2. a, b, e, t, l1, l2, l3 ← control parameters for hyperchaos

  3. for n = 2: x2

  4. s1(n+1)˙= a(s2 s1)+ l1s4

  5. s2(n+1)˙= es1 s1s3+ l2s4

  6. s3(n+1)˙ = −bs3 s1s2+ l3s4,

  7. s4(n+1)˙= ts1

  8. end for

  9. Calculate x1j, x2j, x3j and x4j as state variables to perform key sequences (Sia)j and (Sib)j

  10. concatenate the values as Sj

  11. Sj = [(S1a)j, (S2a)j, (S3a)j, (S4a)j, (S1b)j, (S2b)j, (S3b)j, (S4b)j],

  12. Obtain PRN sequence as

  13. k = [S1, S2,S3,,Sm×n]

  14. resize the input image

  15. for rounds ←   1: x

  16.    for rounds  ← 1: y

  17. Interpolate using Equations (1)–(4)

  18. end for

  19. end for

  20. Data vector=[WM: EHR]

  21.    for rounds   ←   1: length (Data vector)

  22. Data=Data vector ⊕ k

  23. end

  24. Start embedding data in LSB’s of DCP pixels of the cover image by encrypted data vector (Data)

  25. END