Domanda

again another question about Ascii to hex conversion. I would like to take an Ascii "1" symbol that has been input by the user, then take that value, convert it to hex and send it over a network as its non printable value so that it cannot be easily read by anyone viewing the data on the network. Now i can take the hex value and send it over the network but when i sniff the network to view the data being transferred then I can read the hex value as it is. How would I make it so it appears as a non printable? I am using wireshark to view network data

È stato utile?

Soluzione

Either use real encryption and decryption between your source and destination (implementation will vary depending on how you are sending the data) or just obfuscate a bit by adding a known value to the hex that is 'only' known by the source and destination (probably best to modulo this by 127) - essentially this is a shift cypher. This isn't very secure but makes it a little harder to read by packet sniffing. If you want a bit more obfuscation you could have a map of the 128 possibilities to 128 different. It all depend how 'secure' this connection need to be.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top