(论文)摘 要随着信息时代的不断发展与计算机科技的进步,信息的保密显得更加重要,众多密码加密算法应运而生。本文章总结了分组密码算法的历史现状与发展趋势,并阐述了 DES 算法与 SM4 算法两种经典算法的加密、解密、子密钥生成基本结构与原理,再通过用 Visual Studio 软件以及 c#语言完成对 DES算法与 SM4 算法的加密功能和解密功能的更加直观实现,在此基础之上,利用差分密码分析、线性密码分析、差分故障分析、差分能量分析等分组密码分析方法分别对 DES 和 SM4 两种密码算法的安全性进行讨论和分析,总结出了两种分组密码算法在面对这些攻击时的可靠或不足。可以得出,DES 算法虽然加密解密速度较快且易于实现,但是其安全性却不高,多应用于对安全性要求偏低而性价比较高的软件与设备,对其稍加改进后,应用还是十分广泛。而 SM4 算法由中国国家专业机构自行设计,目前来看,尚无明显安全性缺陷,因此可用于多种商业与产业运作中,具有很高的安全性,实现过程也相对容易,因此具有很高的商业与使用价值,对密码学的本土化自主研究也有很高的学术价值。DES 与 SM4 两种分组密码算法对我们的密码学研究发展与计算机安全性的实际应用都具有重要的意义,值得各类学者进一步研究与改进。- I -关键词: DES 算法,SM4 算法,实现,安全性(论文)Research and application of SM4 and DES algorithmAbstractWith the continuous progress of the information age and the development of computer science and information technology, the confidentiality of information has became more and more important. This paper summarizes the historical status and development trend of block cipher algorithm, and expounds the basic structure and principle of encryption, decryption and sub key generation of DES algorithm and SM4 algorithm. Then using the Visual Studio and C# language realize the encryption and decryption functions of DES algorithm and SM4 algorithm In a more intuitive way. On this basis, the security of the two cipher algorithms is discussed and analyzed by using differential cryptanalysis, linear cryptanalysis, differential fault ana...