Decoding and Encoding issue. Different implementations of Base64 Class in android.util.* and java.util.*?
问题 I am writing an App which does the following with a given String str: encode(encrypt(encode(stringToBytearray(str)))); The Server receives the Base64 encoded String, which is then decoded -> decrypted -> decoded, to get the sent String str from the App. Unfortunately it doesnt work for all Strings, long Strings lead to a long Base64 String and my Server throws the following Exception: Exception in thread "main" java.lang.IllegalArgumentException: Illegal base64 character 5b at java.util