Beispiel #1
0
 public static byte[] decode(String s) {
   try {
     return Base64.decode(s);
   } catch (IOException exp) {
     throw new IORuntimeException(exp);
   }
 }
Beispiel #2
0
 public static String encode(byte[] b) {
   return Base64.encodeBytes(b);
 }