Pemanfaatan One Time Password (OTP) dan Internet of Things (IoT) untuk Keamanan Paket pada Smart Deposit Box
Utilization of One Time Password (OTP) and Internet of Things (IoT) for Package Safety in a Smart Deposit Box
Abstract
The rapid advancement of digital technology has significantly transformed consumer shopping behavior, with online transactions via e-commerce platforms becoming the preferred method due to their practicality and efficiency. Despite these conveniences, the delivery process to the buyer’s residence still presents several challenges, such as the recipient’s absence or the risk of package theft. In response to these issues, a Smart Deposit Box system based on the Internet of Things (IoT) is proposed as an alternative solution, allowing couriers to deliver packages independently using a verification mechanism based on a One Time Password (OTP). The OTP is generated by the server of a dummy simulated e-commerce website using the TOTP algorithm and stored in the database as a SHA-256 hash. This system utilizes an ESP32 microcontroller as the central controller, connected to components such as a 4x4 keypad matrix, relay, solenoid lock, and magnetic switch. The courier enters the OTP via the keypad, and the ESP32 processes the input into a hash and validates it to the server using the POST method. If the OTP is valid, the ESP32 activates the relay to unlock the door, triggers an indicator, updates the delivery status, and sends a notification to the user via the Blynk application. Conversely, if the OTP is invalid or a network error occurs, the system will emit an alert sound and display the status on the LCD screen. The dummy e-commerce website, developed using PHP and hosted on a local server, serves as the platform for order logging and OTP management. System testing shows that OTP validation operates with 100% accuracy under stable network conditions. The final results indicate that the system can perform OTP verification reliably and efficiently. The integration of OTP control, ESP32-based hardware management, and real-time monitoring via the Blynk application provides a secure, practical, and remotely accessible deposit box solution.
Collections
- Undergraduate Theses [883]
