Question

How do I protect my program's from packet sniffers?

E.g. I don't want packet sniffers to be able to see where my program connects to.

What is the best way to counter packet sniffing?

Was it helpful?

Solution

The package content can always be encrypted, but the destination address always needs to be visible for the packets to be routed correctly.

The only way to hide the destination would be to use a proxy and encrypt the message containing the real destination. This only protects the path from the source to the proxy however.

OTHER TIPS

You can protect the content of your communications using a scheme such as SSL. However, you can't hide the destination of your communications because all the routers along the way also need to know where to send your packets.

It's sort of like asking whether you can send a letter to your friend in London, without telling the postal service where your friend lives.

Use encryption. You can either use SSL to protect everything, or you can encrypt specific data using one of the many public key encryption schemes available.

Revision

If you want to hide where the program is connecting to, perhaps you can use an Anonymizer service

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top