Example #1
0
 static byte[] decodeString(String st) {
   return Strings.fromBase64(st);
 }
Example #2
0
 static String encodeBytes(byte bytes[], int offset, int length) {
   // TODO: needs to be more efficient?
   return Strings.toBase64(bytes, offset, length);
 }