ApplicationofAESEncryptioninSQLiteEmbeddedDatabaseZHAIYu,WULiming,WANGXiang,WANGShujuan,DONGQining(NorthAutomaticControlTechnologyInstitude,Taiyuan030006,China)Abstract:SQLite,asalightweightembeddeddatabase,hasbeenwidelyusedinembeddeddevicesofarmoredvehicles,butitdoesnothavedataencryptionfunction.Inordertoensuredatasecurity,amethodofencryptingSQLitefileswithAESencryptionalgorithmisproposed.Atthesametime,inordertoadapttotheembeddedenvironment,thestandardAESalgorithmisimprovedintwoaspects:simplifiedS-boxandunorderedshiftrow.ThetestresultsinSQLiteshowthatlightweightAEShasbetterperformanceinencryptiontime,storagespaceandavalancheeffects:ThelightweightAESis8%fasterthanthatofthestandardAES,17%fasterthanthatof3DES,thememoryoccupationis17.8%lighterthanthatofthestandardAES,27%lighterthanthatof3DES,andtheavalancheeffectisincreasedby1%,providinganefficientschemeforembeddeddevicedatabasesecurity.Keywords:AESencryptionalgorithm;lightweight;embeddeddatabase;SQLiteCitationformat:ZHAIY,WULM,WANGX,etal.ApplicationofAESencryptioninSQLiteembeddeddatabase[J].FireControl&CommandControl,2023,48(6):97-101.0引言随着坦克装甲车辆的信息化发展,其各个分系统及嵌入式设备产生的数据量越来越大。以火控系统为例,包括武器状态信息、发控信息、目标信息等。这些大量数据需要专门的嵌入式数据库进行管理。SQLite作为嵌入式平台数据储存的主要方式,具有体量小、可移植性高、管理简单、状态回滚方便等特点。然而SQLite没有用户管理与加密功能,这意味着数据库文件对所有人开放,都可以轻松用工具查看。对于重要的军用设备,这种开放的文件存在信息安全隐患。加密一直是最受欢迎的信息安全解决方案之一,在数据安全中发挥着重要作用,加密算法研究具有重要意义。收稿日期:2022-08-15修回日期:2022-09-21作者简介:翟禹(1997—),男,四川南充人,硕士研究生。研究方向:系统工程。摘要:SQLite作为一款轻量级嵌入式数据库已广泛应用于装甲车辆各嵌入式设备中,但其不具备数据加密功能。为保证数据安全,提出了AES加密算法对SQLite文件进行加密的方法。同时,为适配嵌入式环境,对标准AES算法进行简化S盒与无序行移位两方面改进。在S...