计算机应用 ›› 2012, Vol. 32 ›› Issue (12): 3462-3465.DOI: 10.3724/SP.J.1087.2012.03462

• 信息安全 • 上一篇    下一篇

安全的LZW编码算法及其在GIF图像加密中的应用

向涛,王安   

  1. 重庆大学 计算机学院,重庆 400030
  • 收稿日期:2012-06-18 修回日期:2012-07-24 发布日期:2012-12-29 出版日期:2012-12-01
  • 通讯作者: 向涛
  • 作者简介:向涛(1980-),男,湖北荆门人,副教授,博士,主要研究方向:混沌密码学、多媒体安全;〓王安(1987-),男,山东菏泽人,硕士研究生,主要研究方向:数据压缩、信息安全。
  • 基金资助:
    国家自然科学基金资助项目;中国博士后科学基金特别资助;中央高校基本科研业务经费面上项目

Secure LZW coding algorithm and its application in GIF image encryption

XIANG Tao,WANG An   

  1. School of Computer Science, Chongqing University, Chongqing 400030, China
  • Received:2012-06-18 Revised:2012-07-24 Online:2012-12-29 Published:2012-12-01
  • Contact: XIANG Tao

摘要: 提出了一种安全的LZW编码算法——SLZW。该算法在改进的LZW编码过程中嵌入加密,从而能够同时完成压缩和加密。SLZW编码利用动态Huffman树作为LZW的字典,并且通过耦合映像格子(CML)产生的密钥流对字典的构建和更新进行控制,编码输出进一步和密钥流进行异或后产生密文。并且,该算法被应用于GIF图像加密中,实验结果和分析表明,该算法不仅具有较好的安全性,同时也将标准LZW算法的压缩效率提高了10%左右,具有广泛的实用性。

关键词: 数据压缩, 图像加密, Huffman编码, 耦合映像格子

Abstract: This paper proposed a Secure LZW (SLZW) coding algorithm, where encryption was embedded into the improved LZW coding process, and SLZW can fulfill compression and encryption in a single step. In SLZW algorithm, dynamic Huffman tree was utilized to code the dictionary of LZW, and the initialization and updating of Huffman tree were controlled by a sequence of keystream generated by Coupled Map Lattcie (CML). The code words were further XORed with the keystream to generate the ciphertext. The SLZW was applied to GIF image encryption. The experimental results and their analyses indicate that the proposed SLZW algorithm not only has good security, but can also improves the compression ratio by about 10%. Therefore, SLZW can find its wide applications in practice.

Key words: data compression, image encryption, Huffman coding, Coupled Map Lattcie (CML)