I have a byte array which I\'m encrypting then converting to a string so it can be transmitted. When I receive the string I then have to convert the string back into a byte
This looks like Base64. Take a look at commons-codec Base64 class.
Base64