What do you use for secure communications with your Server?
HTTPS should be the way to send login credentials, and then receive a Session to work within.
Without HTTPS, how do we do this? I can think of various ways, but all have a form of hole in them.
Regards
REAL programmers type copy con filename.exe
---------------------------------------
Comments
---------------------------------------
Normaly HTTPS is used between a browser and a web server, but a browser uses Diffie-Hoftman protocol for key exchange and create a session previously to send data.
The main problem is how to share a simetric key between client and server in order to sent encrypted data. If you can set this key as a previous one only known by both parties, then you can use a simmetric algorithm (may be as Gideros Plugin C++ or just simply lua implementation) to encrypt data in client and decrypt in server.
I guess symetric algorithms (DES for example) are better and easy than asymetric ones because in the second case you will need two keys (private and public) for both (client and server).
I do not know if there are some DES implementation on lua, but sure it will be really slow.
It depends what you understand by secure and exactly what you need for client and server communication: data integrity, authentication, privacy, ...
I have found this fork of Luacrypto that you can use both digest and encrypt / decrypt though OpenSSL
https://github.com/mkottman/luacrypto
I expect it helps.
But this opens up a conundrum, Is there a way to construct the URL to work through a proxy?
---------------------------------------