电子科技 ›› 2025, Vol. 38 ›› Issue (6): 16-22.doi: 10.16180/j.cnki.issn1007-7820.2025.06.003

• • 上一篇    下一篇

基于XML数据的加密方

周游(), 陆安江   

  1. 贵阳信息科技学院 信息工程学院,贵州 贵阳 550025
  • 收稿日期:2023-11-17 修回日期:2023-12-11 出版日期:2025-06-15 发布日期:2025-06-24
  • 通讯作者: 周游(1994-),男, E-mail:1849442253@qq.com,工程师。研究方向:数据交换、无线通信。
  • 作者简介:陆安江(1978-),男,博士,副教授。研究方向:信号传输与信号处理、大数据应用。
  • 基金资助:
    黔科合重大专项(2016-3022)

Research on Encryption Methods Based on XML Data

ZHOU You(), LU Anjiang   

  1. School of Information Engineering,Guiyang Institute of Information Science and Technology,Guiyang 550025,China
  • Received:2023-11-17 Revised:2023-12-11 Online:2025-06-15 Published:2025-06-24
  • Supported by:
    Guizhou Kehe Major SpecialProject(2016-3022)

摘要:

可扩展标记语言(Extensible Markup Language, XML)是数据交换介质的首选,需选择合适的加解密方式来保障其安全性。RSA(Rivest-Shamir-Adleman)加密算法和AES(Advanced Encryption Standard)加密算法是目前常用的加密方法。在对XML文档进行加解密时,单独使用RSA加密算法的效率低,单独使用AES加密算法的安全性较低。针对上述问题,文中采用孙子定理和费马小定理对RSA加密算法进行改进。实验结果表明,改进RSA加密算法的加解密效率得到了显著提升。将AES加密算法与RSA加密算法结合使用或将AES加密算法与改进RSA加密算法结合使用均可以增加安全性,但前者的加解密效率低于后者。

关键词: XML, RSA加密算法, AES加密算法, 费马小定理, 孙子定理, 加解密效率, XML文档加密

Abstract:

XML (Extensible Markup Language) is the preferred medium for data exchange. Therefore, appropriate encryption and decryption methods must be selected to ensure its security. RSA (Rivest-Shamir-Adleman) encryption algorithm and AES (Advanced Encryption Standard) encryption algorithm are common encryption methods at present, but when encrypting and decrypting XML documents, RSA encryption algorithm is inefficient and AES encryption algorithm is less secure. In view of the above problems, the RSA encryption algorithm is improved using Chinese remainder theorem and Fermat's little theorem. The experimental results show that the encryption and decryption efficiency of the improved RSA encryption algorithm has been significantly improved. The combination of AES encryption algorithm and RSA encryption algorithm or the combination of AES encryption algorithm and improved RSA encryption algorithm can improve the security, but the efficiency of the former is lower than that of the latter.

Key words: XML, RSA encryption algorithm, AES encryption algorithm, Fermat's little theorem, Chinese remainder theorem, encryption and decryption efficiency, XML document encryption

中图分类号: 

  • TP309