I'm sorry if this project doesn't seem very well defined at this point, but please bear with me. What I want is to be able to control my garage door over internet (or phone), using an ESP8266 connected wirelessly to my wifi-router connected to the internet.
What I plan so far is to have the ESP8266 module in the garage controlling a mosfet/transistor which in turn controls the garage opener (there is already a switch inside the garage and the door opens/closes when the wires are shorted and the mosfet/transistor is to be placed in parallell to this circuit). There are several tutorials on how to control an ESP8266 via the internet (http://www.instructables.com/id/Control-ESP8266-Over-the-Internet-from-Anywhere/?ALLSTEPS), however none of these as far as I can see offers any kind of security, e.g rolling codes or verification of some sorts. My question is how can I implement this as part of this project?