WebGL and multiple php scripts on server

Hello,

I have a unity WebGL application that communicates with a server. The server executes commands sent from Unity, where each command is a different php script that unity calls.

Here is what im doing now (certainly NOT secure at all).

When my Unity app wants to add something to the data base it uses WWW to call

www.website.com/add.php?username=xxxx&password=yyy

when it wants to delete something it calls

www.website.com/delete.php?username=xxxx&password=yyy

Where it keeps sending the username and password with each request so that the server can validate that its a valid user making the request, but of course this is not secure since a hacker can easily sniff this.

Anybody knows the correct hack proof way of doing this?

Thanks

You could deal with personally defined encryption/decryption in the php script.

Why not to use WWWForm with POST request for it?

POST cannot be sniffed?

POST can be forged easily also…

some ideas in this thread

If I select the “developer tools” in chrome or firefox, it shows me all the network transactions called by the browser, including all php functions and its parameters plain as day!..im like WHAT!!!

So the browser lets hackers easily find out which php functions im calling and all the parameters!!!

thats pure madness!!!

Anybody knows if i use SSL will the browser still be able to show all that in plain text or will all that get encrypted so that hackers cant see what im doing?