Excuse me if I am being stupid here but how can HTTPS be any safer than HTTP?
There are a few ways I saw HTTPS working.
The server sends the client an encryption key which the client uses to encrypt the data and then send it back to the server. The server then decrypts with the same key. This can clearly be easily hacked by intercepting the key and the data and decrypting it in the same way as the server.
The client sends the server the key and encrypted data which the server then uses to extract the data. Once again if the packet is sniffed someone can simply decrypt it the same way a server can.
The client encrypts without the data without a key and then decrypts it on the other side. Once again easily intercepted and decrypted.
As far as I can see if the server is communicating with the client then all communications can be intercepted and reverse engineered? Also it cant be a simple one way encryption system as the server also needs to decrypt the data itself.
Thanks