I have the following code for sun.misc.BASE64Encoder
:
BASE64Decoder decoder = new BASE64Decoder();
byte[] saltArray = decoder.decodeBuffer(saltD);
byte[] ciphertextArray = decoder.decodeBuffer(ciphertext);
and would like to convert it to org.apache.commons.codec.binary.Base64
. I've gone through the APIs, the docs, etc., but I can't find something that seems to match and give the same resulting values.
The method encodeToString(byte[]) is undefined for the type Base64
? – Marzi