{'fraction_non_alphanumeric': 0.020578778135048232, 'fraction_numerical': 0.010932475884244373, 'mean_word_length': 4.871698113207547, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Improving IoT data Security Using Compression and Lightweight Encryption Technique

The Internet of Things (IoT) can be considered as a physical object that connects and exchanges data with other objects over networks. IoTs transmit different types of personal healthcare information, critical data, and other items, via the Internet. This data becomes a target of security issues. Therefore, the security of this data is vital to maintain the confidentiality and integrity of the data by using lightweight encryption. Due to the minimal resources available to these IoT devices, IoT requires other techniques to deal with these limitations, such as the compression methods to decrease data size and increase the speed of transmission. In this paper, the proposed system combines compression and lightweight encryption techniques to decrease the data size and protect it. The collected data from the IoT sensor is compressed by using the Zstandard algorithm, after which the compressed data is encrypted using the Tiny Encryption Algorithm (TEA) in the gateway and sent to the fog server. Besides, the Elliptic Curve Diffie-Hellman is used as the key exchange protocol among the IoT device layer to the Fog layer. The hardware used in the proposal is the Raspberry Pi model 4 and two types of sensors. The results show that the system reduces the size of the transmitted data in about 79% for 36.58 GB, and provides better security with the encryption and decryption time of about 0.36 msec for 100-byte data size, while its throughput is 277.7 byte/msec.