title: Java string to bytearray back to string
body: <p>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.</p>
  
  <p>The problem is that readline() doesn't accept string that has been XORed and will only if accepted if it is in bytes.</p>
  
  <p>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.</p>
  
  <p>Sadly, the result I am looking for is still jibberish and not the plaintext that I seeked.</p>
  
  <p>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?</p>