The rapid growth of Internet of Things (IoT) applications over 5G networks demands secure, low-latency data transmission while operating under strict resource constraints. However, existing studies have relied on simulations or partial implementations that fail to capture real 5G features, thus producing overly optimistic elucidations of cryptographic performance. In addition, the absence of end-to-end validation across system layers introduces an opaque flow effect, where transparency lacks across the full transmission path. To address this gap, this paper presents a fully integrated end-to-end 5G IoT security framework that introduces a modified RC4-NL (nonlinear) algorithm to enhance the security of lightweight stream ciphers while preserving computational efficiency. Environmental sensor data is encrypted on a Raspberry Pi 4B and transmitted over a commercial 5G standalone network using a Quectel FG50V module to a Multi-access Edge-Computing (MEC) server. A web-based dashboard built with FastAPI, accessed securely through an Ngrok tunnel, performs real-time decryption and visualization on 5G-connected mobile devices. This architecture eliminates the opaque flow effect and enables realistic performance evaluation, thereby avoiding the optimistic elucidations observed in simulation-based studies. This work experimentally evaluates cryptographic algorithms named Ascon, ChaCha20, AES, standard RC4, and the proposed RC4-NL under the same conditions. Experimental findings indicate that modified RC4-NL achieved an encryption time of 977 µs, a decryption time of 456 µs, and provides a lower power consumption of 0.40 watts, thus giving a proper trade-off between efficiency and enhanced security compared to standard RC4.
Saraswathi et al. (Wed,) studied this question.