All pastes #2091062 Raw Edit

asdf

public java v1 · immutable
#2091062 ·published 2011-10-18 13:03 UTC
rendered paste body
public abstract class ck{  private static final int[] a = { 255, 255, 26, 27, 28, 29, 30, 31, 8, 14, 255, 255, 255, 255, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 255, 9, 10, 11, 12, 13, 255, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 255, 255, 255, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 255, 9, 10, 11, 12, 13, 255, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 255, 255, 255, 255, 255 };  public static String a(byte[] paramArrayOfByte)  {    int i = 0;    int j = 0;    StringBuffer localStringBuffer = new StringBuffer((paramArrayOfByte.length + 7 << 3) / 5);    while (i < paramArrayOfByte.length)    {      int k = paramArrayOfByte[i] >= 0 ? paramArrayOfByte[i] : paramArrayOfByte[i] + 256;      if (j > 3)      {        int m;        if (i + 1 < paramArrayOfByte.length)          m = paramArrayOfByte[(i + 1)] >= 0 ? paramArrayOfByte[(i + 1)] : paramArrayOfByte[(i + 1)] + 256;        else          m = 0;        k &= 255 >> j;        j = (j + 5) % 8;        k = k << j | m >> 8 - j;        i++;      }      else      {        k = k >> 8 - (j + 5) & 0x1F;        if ((j = (j + 5) % 8) == 0)          i++;      }      localStringBuffer.append("ABCDEFGH8JKLMN9PQRSTUVWXYZ234567".charAt(k));    }    return localStringBuffer.toString();  }  public static byte[] a(String paramString)  {    byte[] arrayOfByte = new byte[paramString.length() * 5 / 8];    int i = 0;    int j = 0;    int m = 0;    while (i < paramString.length())    {      int k;      if (((k = paramString.charAt(i) - '0') >= 0) && (k < a.length) && ((k = a[k]) != 255))        if (j <= 3)        {          if ((j = (j + 5) % 8) == 0)          {            int tmp82_80 = m;            byte[] tmp82_78 = arrayOfByte;            tmp82_78[tmp82_80] = (byte)(tmp82_78[tmp82_80] | k);            m++;            if (m >= arrayOfByte.length)              break;          }          else          {            int tmp106_104 = m;            byte[] tmp106_102 = arrayOfByte;            tmp106_102[tmp106_104] = (byte)(tmp106_102[tmp106_104] | k << 8 - j);          }        }        else        {          j = (j + 5) % 8;          int tmp131_129 = m;          byte[] tmp131_127 = arrayOfByte;          tmp131_127[tmp131_129] = (byte)(tmp131_127[tmp131_129] | k >>> j);          m++;          if (m >= arrayOfByte.length)            break;          int tmp154_152 = m;          byte[] tmp154_150 = arrayOfByte;          tmp154_150[tmp154_152] = (byte)(tmp154_150[tmp154_152] | k << 8 - j);        }      i++;    }    return arrayOfByte;  }}