I have old code which uses sun.misc.BASE64Encoder to encode and BASE64Decoder to decode. I know that this code should not be used as it is in sun.* package.
I need to do the same logic in a different place which carries the same logic / algorithm( for encoding and decoding).
Can anyone suggest me an equivalent of this?