How to use base64 to encrypt and decrypt?
<p>I am trying to convert byte array to base64 format in java.<br>
my problem is sun.misc.BASE64Decoder cannot be  used? Is there any alternative?</p>

<pre><code>byte[] buf = new byte[] { 0x12, 0x23 };
String s = new sun.misc.BASE64Encoder().encode(buf);
</code></pre>
