基于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.