Smart Greenhouse Application With MERN and AES-128 CBC Data Encryption Based on IoT
Muhammad Alvito Aditya, Nur Rokhman, Rin Rin Nurmalasari, Sugih Gumilar, Padlan Alqinsi, Nanang Ismail · 2023
The greenhouse is a building construction used for growing crops. Many farmers still use traditional methods for the greenhouse data monitoring process, making it inefficient in terms of time and energy spent. Farmers need an attractive, fast, and secure application for an efficient greenhouse data monitoring process. Farmers can use a website-based application connected to the greenhouse's IoT system. This research discusses a website-based smart greenhouse application for the greenhouse data monitoring process. The application was developed using the Scrum Agile Development method, where each stage has an iterative and structured process. The technology combines MongoDB, Express JS, React, and Node JS, known as the MERN framework, the MQTT protocol, and data encryption techniques with AES-128 CBC. Testing this application uses the black box testing method by testing 14 types of REST API services and 9 application services. The duration of testing results varies depending on the number of services to be tested. In addition to being tested with a black box, the application was tested with GTMetrix, which gave an “A” grade with a score of 99%, and the total page size was 519kb. This test proves that MERN has good enough application performance to be implemented as an IoT-based smart greenhouse application. The encryption results of sensor data stored in the MongoDB database have a level of randomness that is very difficult to break, so the data cannot be processed or used to create machine learning models if the developer's key and Initialization Vector (IV) are not known.