Skip to main content
. 2021 Sep 17;23(9):1221. doi: 10.3390/e23091221
Algorithm 1. The confusion process of the proposed image encryption scheme.
Input: The plaintext image P and three initial values x0, y0, z0.
Output: The confusion image F.
  1. Truncate the plaintext image as size L2×L2, where L2 is calculated using Equation (8).

  • 2.

    Generate three chaotic sequences, X, Y, and z, where these lengths are L2×L2.

  • 3.

    Reshape the sequences X, Y, and z in columns into L2×L2. matrices, denoted as XL, YL, and ZL.

  • 4.

    Matrices S1=XL×YL and S2=XL×ZL can be obtained.

  • 5.

    Sort S1 and S2 in ascending order, and obtain their index vectors I1 and I2.

  • 6.

    The pixel locations of the plaintext image P are rearranged using the index matrix Ii, where i = {1,2}.

  • 7.

    The confusion image F is obtained.