001 package com.skype.util;
002
003 public abstract class Base64
004 {
005
006 public static String encode(byte abyte0[])
007 {
008 if (abyte0 == null)
009 return null;
010 else
011 return inst.encode(abyte0, null, 0).toString();
012 }
013
014 public static byte[] decode(String s)
015 {
016 if (s == null)
017 return null;
018 else
019 return inst.decode(s);
020 }
021
022 private Base64()
023 {
024 }
025
026 private static BaseX inst = new BaseX("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", true, '=');
027 }