Skip to main content
. 2021 Jan 4;21(1):282. doi: 10.3390/s21010282
Algorithm 2. CI generation, WM, and EHR data extraction and decryption
Input: Stego Image (SI) M × N, keys as initial conditions and control variables
Output: Cover Image (CI) of size M × N, WM, EHR
  BEGIN
  1. s1, s2, s3, s4 ← key as an initial condition for hyperchaos

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

  3. for n1 = 2: x12

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

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

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

  7. s4(n1+1)˙= ts1

  8. end for

  9. Obtain PRN sequence

  10. Extricate the LSB bits from the non-seed pixels of the SI to form the encrypted WM and encrypted EHR data bit vectors

  11.     for rounds  ←  1: length (extracted data vector)

  12. Original data vector = extracted data vector ⊕ k

  13. End

  14. Obtain the WM and EHR from this data vector

  15. Reshape the original WM to check if it has tampered

  16. Reconstruct the CI using the seed pixels.

  17. END