## 6 Results
### Performance on ESP 8266 and ARM M4
#### 6.2.1 Node MCU  
The performance test of the lightweight encryption algorithm using anonymous and registered accounts on the MQTT server was carried out on the WiFi network. The registered account used for testing is \"winarnolab\" with the password \"loop1206\". The test was 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 3-5 and Figure 6. Testing is done by sending messages with a length of 80 bits (10 Characters), 120 bits (15 Characters), and 160 bits (20 Characters). \begin{table}
\begin{tabular}{c c c c} \hline \hline
**No** & **Parameter** & **Description** & **Value** \\ \hline
1 & WiFi &
\begin{tabular}{c} Download Speed \\ Upload Speed \\ \end{tabular} & 43.49 Mbps \\ \hline
2 & Messages & \
\begin{tabular}{c} 80 bit (10 Char) \\ 120 bit (10 Char) \\ \end{tabular} &
\begin{tabular}{c} hello eqmx \\ hello eqmx dear \\ hello eqmx dear \\ hello eqmx dear \\ \end{tabular} \\ \hline \hline \end{tabular}
\end{table} 
Table 2: Test Parameters. Figure 6: Lightweight Cryptographic Performance on NodeMCU on WiFi Network Used Anonymous Account. (**a**) Encryption Time; (**b**) Decryption Time; (**c**) Message Publication Time to MQTT Server. From Table 3, it can be seen that Tiny JAMBU can encrypt messages with a time of 306 us and decryption of 317 us, for messages with a length of 10 Characters. AES-128 GCM mode can perform encryption and decryption of 558 us and 570 us, respectively. GIFT-COFB takes 1066 us and 1087 us for encryption and decryption. Meanwhile, Romulus N1 is capable of encrypting 10-character messages for 2052 us and 2075 us and message publication to the MQTT server takes 728 us. Table 4 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 315 us, a decryption time of 332 us, and a message publication time of 557 us. Meanwhile, the AES-128 GCM is still tight with an encryption time of 560 us and a decryption time of 571 us and a publication time of 704 us. This is followed by GIFT-COFB with an encryption time of 1066 us and a decryption time of 1090 us and Romulus N1 with an encryption time of 2053 us and a decryption time of 2077 us with a message publication time of 689 us. Table 5 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 still produced by Tiny JAMBU, with an encryption time of 321 us and a decryption time of 338 us. 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 ms and the fastest performance is produced by Tiny JAMBU, as can be seen in Figure 6. \begin{table}
\begin{tabular}{c c c c c} \hline \hline \multirow{2}{*}{**No**} & \multirow{2}{*}{**LWC Algorithm**} & **Encryption Time** & **Decryption Time** & **Publication Time** \\  & & **(us)** & **(us)** & **(us)** \\ \hline
1 & AES-128 GCM & 560 & 571 & 704 \\
2 & GIFT-COFB & 1066 & 1090 & 699 \\
3 & Tiny JAMBU & 315 & 332 & 557 \\
4 & Romulus-N1 & 2053 & 2077 & 689 \\ \hline \hline \end{tabular}
\end{table} 
Table 4: Lightweight Cryptographic Encryption and Decryption Performance on NodeMCU with 15 Characters Messages used Anonymous Account.