基于AES和RSA混合加密的可见光通信系统设计
刘西林,田芳,邱达,李港
(湖北民族大学 智能科学与工程学院,湖北 恩施 445000)
摘 要 :针对可见光通信 (VLC) 在工业控制等物联网应用中因开放信道特性导致的数据安全风险问 题,提出一种基于 STM32F103芯片的可见光通信系统,通过对称加密算法 (AES) 对传输数据加密,非对称加密算法 (RSA) 对AES密钥加密,脉宽调制、频移键控将数据调制成不同频率的脉冲信号,经LED发送并由光电传感器接收,最后实现解密操作。测试表明,通信距离与传输速率、误码率分别呈负相关与正相关,在 0.3 m视距链路中传输 20 KB数据,速率可达28 kbit/s,误码率为0.049%,系统动态功耗约325.75 mW。采用的混合加密算法密钥生成及加解密耗时约 1.1 s,在明文与密钥扰动下的雪崩效应为49.8%、49.7%,显示出良好的抗密码分析能力,同时算法有效融合了AES的高效率与RSA的安全优势, 验证了动态调制与混合加密在 VLC中的可行性,为智能工业传感等场景提供了安全通信参考方案。
关键词 : 可见光通信 ;AES 算法 ;RSA 算法 ;脉宽调制 ;雪崩效应
中图分类号 :TN929.1 文献标识码 :A 文章编号 :1007-3175(2025)12-0029-07
Design of Visible Light Communication System Based on AES and RSA Hybrid Encryption
LIU Xi-lin, TIAN Fang, QIU Da, LI Gang
(College of Intelligent Systems Science and Engineering, Hubei Minzu University, Enshi 445000, China)
Abstract: Aiming at the data security risks of visible light communication (VLC) in Internet of Things applications such as industrial control caused by the characteristics of open channels, a visible light communication system based on the STM32F103 chip is proposed. The system encrypts transmitted data using the symmetric encryption algorithm (AES), encrypts the AES key with an asymmetric encryption algorithm (RSA), modulates data into pulse signals of different frequencies through pulse width modulation and frequency shift keying, transmits them via LEDs, receives them with photoelectric sensors, and finally realizes decryption. Tests show that the communication distance is negatively correlated with the transmission rate and positively correlated with the bit error rate. When transmitting 20 KB of data in a 0.3 m line-of-sight link, the rate can reach 28 kbit/s with a bit error rate of 0.049%, and the dynamic power consumption of the system is approximately 325.75 mW. The key generation, encryption, and decryption time of the adopted hybrid encryption algorithm is about 1.1 s, and the avalanche effect under plaintext and key disturbance is 49.8% and 49.7% respectively, showing good resistance to cryptanalysis. Meanwhile, the algorithm effectively combines the high efficiency of AES and the security advantages of RSA, verifying the feasibility of dynamic modulation and hybrid encryption in VLC, and providing a secure communication reference scheme for scenarios such as intelligent industrial sensing.
Key words: visible light communication; AES algorithm; RSA algorithm; pulse width modulation; avalanche effect
参考文献
[1] 邹徐熹,周忠冉,王虹岚,等 . 基于联邦学习的分 布式物联网设备识别方法 [J]. 计算机工程与应用, 2024,60(23) :155-167.
[2] ZHANG Y, CHEN M, YUAN M, et al.Attentiontransfer-based path loss prediction in asymmetric massive MIMO IoT systems[J].Computer Communications,2024,226 :107905.
[3] MALIK S T, MALIK R K, SANAULLAH M, et al.NonCooperative Learning Based Routing for 6G-IoT Cognitive Radio Network[J].Intelligent Automation & Soft Computing,2022,33(2) :809-824.
[4] 王琳,刘为,唐瑞波 . 基于策略的频谱资源动态分配技 术 [J]. 中国电子科学研究院学报,2018,13(1) :108-114.
[5] GE N, JIANG C, LU J.Prospects for 6G Communication Innovation from a System Perspective[J]. Engineering,2023,31(12) :19-24.
[6] 姜彬, 周鹏 .6G短距离可见光通信信道估计与均衡 [J]. 光通信技术, 2025, 49(1) :38-43.
[7] TIAN Y, JING L, TONG Z, et al.Visible light positioning system based on stacking learning model[J].Optics Communications,2025,578 :131479.
[8] MAKVANDI A, KAVIAN Y S, NAMJOO E.VLCIoT: Design and Implementation of a Visible Light Communication System for Indoor Internet of Things Applications[J]. Applied Optics,2021,60(36) :11094-11103.
[9] CHVOJKA P, ZVANOVEC S, HAIGH P A, et al.Channel Characteristics of Visible Light Communications Within Dynamic Indoor Environment[J].Journal of Lightwave Technology,2015,33(9) :1719-1725. [10] JOSIEN M, PRAT R.Parallel and Bias-Free RSA Algorithm for Maximal Poisson-Sphere Sampling[J].Computer Physics Communications, 2024,305 :109354.
[11] SELVI P, SAKTHIVEL S.A hybrid ECC-AES encryption framework for secure and efficient cloud-based data protection[J].Scientific Reports,2025, 15(1) :30867.
[12] 王芳, 鲁静 . 超混沌理论的可见光通信物理链路数据 加密研究 [J]. 激光杂志, 2022, 43(5) :106-110.
[13] SARKAR A, JHAMB M.Improved RSA with Enhanced Security on STM32@84 MHz[J].Journal of Circuits, Systems and Computers,2024,33(15) :2450274.
[14] DHANDA S S, SINGH B, JINDAL P, et al.AES-8: A Lightweight AES for Resource Constrained IoT Devices[J].Transactions on Emerging Telecommunications Technologies,2025,36(3) :e70094.
[15] AL-MOLIKI Y, ALRESHEEDI M, AL-HARTHI Y.Design of physical layer key generation encryption method using ACO-OFDM in VLC networks[J].IEICE Transactions on Communications,2020,103(9) :969-978.
[16] CHENG P Y, SU Y C, CHAO P C P.Novel high throughput-to-area efficiency and strongresilience datapath of AES for lightweight implementation in IoT devices[J].IEEE Internet of Things Journal,2024,11(10) :17678-17687.
[17] ABBOUD S, ABDOUN N.Enhancing LoRaWAN Security: An Advanced AES-Based Cryptographic Approach[J]. IEEE Access,2023,12 :2589-2606.
[18] ZHANG L, WANG Z, LU J.Differential-Neural Cryptanalysis on AES[J].IEICE Transactions on Information and Systems,2024,107(10) :1372-1375.
[19] 刘海峰,刘洋,梁星亮 . 一种结合优化后AES与RSA算法的二维码加密算法 [J]. 陕西科技大学学报, 2019,37(6) :153-159.