J Shanghai Jiaotong Univ Sci ›› 2025, Vol. 30 ›› Issue (5): 976-987.doi: 10.1007/s12204-023-2676-x

• • 上一篇    下一篇

使用区块位置洗牌的 JPEG 图像加密快速攻击算法

  

  1. 长安大学 信息工程学院, 西安710018
  • 收稿日期:2023-05-15 接受日期:2023-08-07 出版日期:2025-09-26 发布日期:2023-12-12

Fast Attack Algorithm for JPEG Image Encryption with Block Position Shuffle

李珊珊,郭亚丽,黄佳鑫,高若云   

  1. School of Information Engineering, Chang’an University, Xi’an 710018, China
  • Received:2023-05-15 Accepted:2023-08-07 Online:2025-09-26 Published:2023-12-12

摘要: 对于传统的JPEG图像加密,区块位置洗牌可以达到更好的加密效果并且可以抵抗非零计数攻击。但是区块位置洗牌并不改变8×8子块内非零系数的个数。针对这个缺陷,提出了一种基于块间洗牌和非零量化离散余弦变换系数攻击的 JPEG 图像加密的快速攻击算法。该算法通过设计的明文图像检测一张图像的像素值,分析加密前后图像块位置映射关系。然后通过逆映射得到图像块的初步攻击结果,最后根据初步攻击结果中每个8×8块中的非零系数个数生成算法的最终攻击结果。在设计的明文中,每个8×8块的位置都与其非零离散余弦变换系数的个数相关。经过验证,在不了解加密算法和密钥的情况下,可以在较短时间内获得原始图像的主要内容。

关键词: JPEG图像, 块间洗牌, 离散余弦变换系数, 非零系数, 快速攻击

Abstract: For traditional JPEG image encryption, block position shuffling can achieve a better encryption effect and is resistant to non-zero counting attack. However, the numbers of non-zero coefficients in the 8×8 sub-blocks are unchanged using block position shuffle. For this defect, this paper proposes a fast attack algorithm for JPEG image encryption based on inter-block shuffle and non-zero quantization discrete cosine transformation coefficient attack. The algorithm analyzes the position mapping relationship before and after encryption of image blocks by detecting the pixel values of an image by the designed plaintext image. Then the preliminary attack result of the image blocks can be obtained from the inverse mapping relationship. Finally, the final attack result of the algorithm is generated according to the numbers of non-zero coefficients in each 8 × 8 block of the preliminary attack result. Every 8×8 block position is related with its number of non-zero discrete cosine transform coefficients in the designed plaintext. It is verified that the main content of the original image could be obtained without knowledge of the encryption algorithm and keys in a relatively short time.

中图分类号: