Research Article

[Retracted] A Secure Environment Using a New Lightweight AES Encryption Algorithm for E-Commerce Websites

Algorithm 3

Zigzag.
Input: Expanded message (EM) as matrix of 4 ∗ 4 of bytes
Output: Zigzagged EM as matrix of 4 ∗ 4 of bytes
Start
//For the first two column
While (i − 2) > 0 do
I = 3, J = 0
a(i, j) = a(i − 1, j)
a(i − 1, j) = a(i, j − 1)
a(i, j − 1) = a(i − 1, j − 1)
a(i − 1, j − 1) = a(i − 2, j)
i−=2
end while
//For the last two column
Count = 0
While (i + 2 ≤ 3) do
I = 0, j = 2
a(i, j) = a(i + 1, j)
a(i + 1, j) = a(I, j + 1)
a(I, j + 1) = a(i + 1, j + 1)
a(i + 1, j + 1) = a(i + 2, j)
i+=2
end while
End