| Algorithm 2 Row/Columns shuffling algorithm |
| Input: The plain image, O, the polynomial , , and . Output: H, the shuffled image. Step 1: Set Step 2: Use Algorithm 1, with polynomial , and interval , to generate a random permutation of size M for shuffling the rows, say . Step 3: Use Algorithm 1, with polynomial , and interval , to generate a random permutation of size N for shuffling the columns, say . Step 4: For to M, compute For to N, compute End For j End For i Step 5: H, the shuffled image. |