## 6 Results
### Performance on ESP 8266 and ARM M4
#### 6.2.2 STM32L4 Discovery  
The performance test of the lightweight encryption algorithm using an anonymous and a registered account on the MQTT server was carried out on WiFi network. The registered account used for testing is \"winarnolab\" with the password \"loop1206\". The test is carried out with three different message lengths, namely 10, 15, and 20 Characters. * Anonymous Account  
The results of the tests carried out on the WiFi network as anonymous users can be seen in Tables 9-11, and Figure 8.  
From Table 9, it can be seen that Tiny JAMBU can encrypt messages with a time of 75 \(\upmu\)s and decryption of 78 \(\upmu\)s, for messages with a length of 10 Characters. AES-128 GCM can perform encryption and decryption with 153 \(\upmu\)s, and 151 \(\upmu\)s. GIFT-COFB takes 149 \(\upmu\)s and 151 \(\upmu\)s for encryption and decryption. Meanwhile, Romulus N1 can encrypt 10-character messages for 549 \(\upmu\)s and 549 \(\upmu\)s and message publication to the MQTT server takes 1203 \(\upmu\)s.  
Table 10 shows the results of testing the secure end-to-end encryption on the MQTT protocol by sending a 15-character message on a WiFi network as an anonymous user on the MQTT server. Tiny JAMBU produces an excellent lightweight cryptographic algorithm with an encryption time of 82 \(\upmu\)s, a decryption time of 85 \(\upmu\)s, and a message publication time of 1168 \(\upmu\)s.  
Meanwhile, the AES-128 GCM is still tight with an encryption time of 152 \(\upmu\)s and a decryption time of 156 \(\upmu\)s and a publication time of 1261 \(\upmu\)s. This is followed by GIFT-COFB with an encryption time of 152 \(\upmu\)s and a decryption time of 150 \(\upmu\)s and Romulus N1 with an encryption time of 550 \(\upmu\)s and a decryption time of 550 \(\upmu\)s with a message publication time of 1262 \(\upmu\)s.  
Table 11 shows the results of testing secure end-to-end encryption on the MQTT protocol by sending messages of 20 Characters long on the WiFi network as an anonymous user on the MQTT server. In the results of this test, the highest performance is produced by Tiny JAMBU with an encryption time of 87 \(\upmu\)s and a decryption time of 92 \(\upmu\)s.  
Based on the results of testing secure end-to-end encryption on the MQTT protocol on the WiFi network as an anonymous user of the MQTT server, it was discovered that sending messages of 10 to 20 Characters can be done in less than 1.4 ms and the fastest performance is produced by Tiny JAMBU, as can be seen in Figure 8.  
* Registered Account  
Testing of secure end-to-end encryption on the MQTT protocol on a WiFi network as a registered user of the MQTT server can be seen in Tables 12-14 and Figure 9. Testing is done by sending messages with a length of 80 bits (10 Characters), 120 bits (15 Characters), and 160 bits (20 Characters). In Table 12, it can be seen that Tiny JAMBU is able to encrypt messages with a time of 75 \(\upmu\)s and decryption of 78 \(\upmu\)s for messages with a length of 10 Characters. GIFT-COFB takes 149 \(\upmu\)s and 151 \(\upmu\)s for encryption and decryption. AES-128 GCM mode can perform encryption and decryption with a time of 151 \(\upmu\)s and 151 \(\upmu\)s. Meanwhile, Romulus N1 can encrypt 10-character messages for 549 \(\upmu\)s. and 548 \(\upmu\)s.  
Table 13 provides an overview of the performance of lightweight cryptographic algorithms on secure MQTT on a WiFi network. The test results show tiny JAMBU has the fastest performance with encryption and decryption time of 81 \(\upmu\)s and 85 \(\upmu\)s, respectively. Meanwhile, the lowest performance was produced by Romulus-N1, 549 \(\upmu\)s for encryption and 551 \(\upmu\)s for decryption. Table 14 shows that tiny JAMBU can perform encryption and decryption in less than 0.1 ms. Tiny JAMBU can encrypt for 88 \(\upmu\)s and decrypt for 92 \(\upmu\)s. AES-128 GCM and GIFT-COFB can perform encryption and decryption in less than 0.2 ms. AES-128 GCM requires 189 \(\upmu\)s for encryption and 189 \(\upmu\)s for decryption.