Secure communication with a PHP backend?

Hello everybody,

I’m in the peculiar situation where I’m building my first commercial unity project as a component as part of larger site. Because of decisions made up the line we’re tied into an existing php backend. Because of this I’m not attempting to do any real time multiplayer stuff, but I still need send sensitive (scores, times, etc) data back and forth. I was just wondering if anyone was aware of what strategies I could use to secure this communication?

Is HTTPS viable? Otherwise are there encryption libraries for unity, so I could at least send a MD5 with my POST requests? Or perhaps a binary format that php can understand?

Thanks in advance!

Hi, welcome to the forum!

Unity supports HTTPS, so you should be able to use this assuming that causes no problems at the server end. I don’t think there are any encryption libraries designed specifically for Unity, but generally .NET libraries are likely to be compatible.