刘芳 王滢淇 吴海涛



摘 要: 对电子文件完整性检查的方法进行了研究。电子文件完整性检查主要是关注某个文件是否被更改。利用信息摘要函数强有力的加密机制,识别文件发生的微小变化,只要是入侵者成功的攻击导致文件任何改变,都能被电子文件完整性检测系统发现,从而保证了对电子文件的完整性检查。文章介绍了CRC32、MD5、SHA-1算法的C语言实现。
关键词: 电子文件; 完整性; 检测; 算法
中图分类号:TP3 文献标识码:A 文章编号:1006-8228(2021)03-44-02
Design and implementation of electronic document integrity detection system
Liu Fang, Wang Yingqi, Wu Haitao
(Nanjing Institute of Technology*School of information and Communication Engineering, Nanjing, Jiangsu 21000, China)
Abstract: The method of checking the integrity of electronic documents is studied. The integrity check of electronic documents mainly focuses on whether a document has been changed. By using the powerful encryption mechanism of information digest function, the tiny changes of the file can be identified. As long as the successful attack of the intruder leads to any changes of the file, it can be found by the electronic document integrity detection system, so as to ensure the integrity check of the electronic document. This paper introduces the C language implementation of CRC32, MD5 and SHA-1 algorithms.
Key words: electronic document; integrity; detection; algorithm
0 引言
随着信息网络技术广泛应用在生活中各个领域,电子文件也随之层出不穷,且生活中不可缺少。而信息技术网络安全发展没有普及到我们应用的方方面面时,我们在应用电子文件的过程中经过处理、传输,文件会发生损坏、丢失或者被修改的情况,对于应用电子文件的普通的我们来说,我们无法根据自身经验去判断这些电子文件在使用过程中出现了什么问题,是否完整。因此,设计检测系统对电子文件完整性进行检测就显得尤为重要。
检测系统通过对电子文件完整性进行检测,判断文件的信息、内容、结构和元数据是否完整。电子文件完整性检测系统通过对需要保护的文件计算出一个信息摘要,每次检测都重新计算文件的消息摘要,并将它与摘要库中的数据进行比较。若相同则说明文件完整,若不相同则说明文件在使用过程中出现了问题,并提示用户做出必要的防范,进而保障电子文件完整性。……