Hello,
i have an aquarium at home. I want to see and control aquarium equipment from any point in the word. For this purpose i have made several things:
1. Visual Basic application running on my PC, designed to control aquarium equipment. It works like TCP client.
2. Aquarium control board, based on PIC microcontroller. Aquarium devices are attached to her.
3. ESP8266 WiFi board, connected to control board (through UART) from one side and connected to the router from the other side (through WiFi). It works like TCP server.
So i can reach aquarium devices from my PC through a router. There is such path:
PC application - router - WiFi board - aquarium control board. WiFi board has stock Espressif firmware, i did not want to alter it. To reach aquarium from outside network i have made port forwarding in my router. No i can reach aquarium from PC using router's external IP address. Router redirects data packets coming to this IP to WiFi board's internal IP address. Everything is OK, but i am afraid of hacking my aquarium controller. So i have thought about 2 ways to make this connection more secure:
a. Control board will accept incoming data packets only from clients with predefined MAC address. But i do not know yet is it possible to do easily.
b. Control board will ask authorisation, and client must send user name and password.
All code related with the security measures bust be implemented in microcontroller.
I prefer to use authorisation method. But because connection between the router and my aquarium is wireless, i need some password and name encryption. Login credentials must be encrypted before sending them from my PC software. I have searched all over the internet how to do that but found nothing. Maybe someone have any suggestions how to do that, which algorithms to use. I did not need extra strong security, encryption must not exceed my PIC18F microcontroller capabilities.
i have an aquarium at home. I want to see and control aquarium equipment from any point in the word. For this purpose i have made several things:
1. Visual Basic application running on my PC, designed to control aquarium equipment. It works like TCP client.
2. Aquarium control board, based on PIC microcontroller. Aquarium devices are attached to her.
3. ESP8266 WiFi board, connected to control board (through UART) from one side and connected to the router from the other side (through WiFi). It works like TCP server.
So i can reach aquarium devices from my PC through a router. There is such path:
PC application - router - WiFi board - aquarium control board. WiFi board has stock Espressif firmware, i did not want to alter it. To reach aquarium from outside network i have made port forwarding in my router. No i can reach aquarium from PC using router's external IP address. Router redirects data packets coming to this IP to WiFi board's internal IP address. Everything is OK, but i am afraid of hacking my aquarium controller. So i have thought about 2 ways to make this connection more secure:
a. Control board will accept incoming data packets only from clients with predefined MAC address. But i do not know yet is it possible to do easily.
b. Control board will ask authorisation, and client must send user name and password.
All code related with the security measures bust be implemented in microcontroller.
I prefer to use authorisation method. But because connection between the router and my aquarium is wireless, i need some password and name encryption. Login credentials must be encrypted before sending them from my PC software. I have searched all over the internet how to do that but found nothing. Maybe someone have any suggestions how to do that, which algorithms to use. I did not need extra strong security, encryption must not exceed my PIC18F microcontroller capabilities.