I have a client and server java application that needs have encrypted text passing through each other. I am using an XOR encryption the encrypt the text that I want.
The problem is that readline() doesn't accept string that has been XORed and will only if accepted if it is in bytes.
So I've converted my plaintext (string) into a byte array on the client side, and tried to convert back to a string on the server side.
Sadly, the result I am looking for is still jibberish and not the plaintext that I seeked.
Does anyone know how to make bytearrays change back to the original string? Or is there a better way to send through an XOR encrypted text through the readline() function?