| Input: plain image | Output: encrypted image | / Decompose into red , green , and blue matrices./ | (:,:, 1) | (:,:, 2) | (:,:, 3) | obtain secret key , with utilizing equations (1) and (2) | //Diffuse color channels using , , and | mod(, ) | ’ mod(, ) | mod( ”, ) | mod(, ) | mod( ’, ) | //Modify keys , , and by considering | ” | ” | ” | //Diffuse ”, ”, and ” utilizing , ”, and ” | mod( ” ” + ”, 256) | mod( ” ” + ”, 256) | mod( ” ” + ”, 256) | //Obtain an encrypted image by concatenating scrambled channels | cat(, , ) | return |
|