SecurePair Lets Two ESP32 Boards Swap Encrypted Data by LED Light
An Arduino library from developer Luca Soltoggio uses one LED per ESP32 as both transmitter and receiver, with wireless handling the encrypted payload.
Developer Luca Soltoggio has released SecurePair, an Arduino library that lets two ESP32 microcontrollers communicate using visible light, according to hackaday.com. Each board uses a single LED as both transmitter and receiver.
The LEDs work in both directions because an LED can also act as a photodiode. SecurePair uses that property to exchange keys and to communicate with encryption.
The library is not limited to light. It is designed to work with ESPNow or LoRa as well as LEDs, with light used for pairing and a wireless link used for the encrypted data exchange.
SecurePair also supports more than two devices in the same conversation, so additional boards can join if needed.
Quick answers
What is SecurePair?
It is an Arduino library for ESP32 microcontrollers that lets devices exchange keys and communicate with encryption, using a single LED per device as both transmitter and receiver.
Does SecurePair only work over light?
No. It is designed to work with ESPNow or LoRa as well as LEDs, with light used for pairing and wireless for the encrypted data exchange.