针对电子密码本模式无法隐藏明文数据模式、分组固定、密钥唯一等问题,利用文本文件的字符存储特性,结合分组加密模式,提出了一种面向文本流的标识分组加解密模式。该模式设计了双Hash映射结构,并创新性地引入了标识库,一层映射完成对明文的非连续分组映射,而另一层映射则基于标识库完成对明文分组的密钥映射。该模式成功隐藏了明文数据模式,并有效解决了电子密码本模式的分块固定和密钥唯一的问题,提高了密文的安全性。实验表明,标识分组加解密模式具有较好的安全性、灵活性和扩展性。
The electronic code book(ECB) mode cannot conceal the data model of the plaintext and has only one private key to the whole plaintext. A block cipher mode based on identity for text files was proposed,which absorbed the advantages of block cipher mode and the feature of plaintext string. A double Hash mapping structure was designed and one layer of the mapping structure maps the plaintext into discontinuous groups, another one which was based on the concept of identify library produced corresponding private key to the plaintext group. The model overcame the discontinuous group and single private key problem and effectively improved the security of the cipher text. The experiment results show that the new model has better security, flexibility and extensibility.