Post your best Lua script examples here

User avatar
By spy king
#19361 I have a simple socket server created that listens for incoming triggers to do stuff on my ESP, but was wondering how to go about adding a simple authentication to server?

I took a look here but didn't find anything?

Any pointers?
User avatar
By TerryE
#19386 Count the function points / validation rules / html requirements to implement HTML-based authentication . You are trying to run this code within a working RAM of ~20KB. If you want to run a webserver and have HTML-based authentication then you should change CPUs or pray for a miracle, IMO.

A very basic TCP server based on a very restricted HTTP / HTML stack then just possibly. Add a signature field based on a shared secret and SHA1 maybe. But you need to get real.