This package of codes is correspoding to the paper: Chengqing Li , Dongdong Lin, Jinhu Lv, "Cryptanalyzing an Image-Scrambling Encryption Algorithm of Pixel Bits", IEEE MultiMedia 24(3):64-71, 2017. Here is the IEEE link and DOI:10.1109/MMUL.2017.3051512, and link of Web of Science.
More information about this paper can be found here.
This paper re-evaluated security of a typical image scrambling encryption algorithm (ISEA) that proposed by Guodong Ye. ISEA was proposed by scrambling binary presentation of a gray-scale plain-image with a pseudo-random number sequence, generated by iterating a digital chaotic map. More information about ISEA can be found here and DOI:10.1016/j.patrec.2009.11.008.
There are codes about ciphertext-only attack and known-plaintext attack on ISEA, and codes for calculating Structural Similarity Index (SSIM) of an image are also introduced.
"IQA_MSssim" contains codes of SSIM is from Dr. Zhou Wang. More details about these codes can be found here.
"cna_matlab_codes" contains two matlab codes, "CorrAttack.m" was written by Weihai Li, Yupeng Yan, Nenghai Yu and slightly modifiled by us. More details about the paper correspoding to this code can be found here and DOI:10.1145/2393347.2396392.
"kpa_matlab_codes" introduces known-plaintext attack on ISEA, You could run these codes as follows.
- Step 1. Run "KPA_ISEA".
- Step 2. Follow the tips. :-)
All the known images are enrcypted with the same secrect keys, and secrect keys of ISEA is
- m = 20
- n = 51
- x0 = 0.2009
- mu = 3.98
- iteratime = 4
See more details in each file.