I’m doing AES encryption and then encoding as below. I’m then passing the encoded string on a url. Every once in a while I’m getting a + sign in my encoded string. When I pass it on the url it’s being converted to a space. What’s the difference between Base64Encoder and URLEncoder? When should I use one and not the other?
BASE64Encoder base64E = new BASE64Encoder();
String encodedStringE = base64E.encodeBuffer(encrypted);
Thanks for the replys. So... AES encrypts a string to a byte arrayr. If I want to pass that info to another page on the url. I should first encode it to convert the byte array to a string and then URLEncode it so I can pass it on a url? The do the reverse on the decrypt side?