GreHack-2012/100-GrehAndroidMe-apk/d-class

From aldeid
Jump to navigation Jump to search
You are here
d.class

Description

d.class extracted from GrehAndroidMe.apk with dex2jar.

d.class

package grackme.im.famous;

import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.SecretKeySpec;

public class d extends c
{
  static final byte[] a = { 66, 108, 111, 119, 102, 105, 115, 104 };
  static final byte[] b = { 107, 110, 111, 49, 100, 101, 74, 69, 73, 113, 77, 57, 76, 79, 66, 43, 83, 87, 99 };

  public String c(String paramString)
  {
    Object localObject = new byte[b.length];
    int i = 1;
    while (true)
    {
      if (i > b.length)
        paramString = a(paramString);
      try
      {
        paramString = new SecretKeySpec(a.a(new String((byte[])localObject) + paramString), new String(a));
        localObject = Cipher.getInstance(new String(a));
        ((Cipher)localObject).init(2, paramString);
        paramString = new String(((Cipher)localObject).doFinal(a.a("eMRhyCAEYaT+S+oYssYxdgRq85i8e4KNS/FEOR+c3zP6hvMYeG2AnTvPj8xDkCXz")));
        return paramString;
        localObject[(i - 1)] = b[(b.length - i)];
        i += 1;
      }
      catch (NoSuchAlgorithmException paramString)
      {
        paramString.printStackTrace();
        return "Nope.";
      }
      catch (NoSuchPaddingException paramString)
      {
        while (true)
          paramString.printStackTrace();
      }
      catch (InvalidKeyException paramString)
      {
        while (true)
          paramString.printStackTrace();
      }
      catch (IllegalBlockSizeException paramString)
      {
        while (true)
          paramString.printStackTrace();
      }
      catch (BadPaddingException paramString)
      {
        while (true)
          paramString.printStackTrace();
      }
      catch (IllegalArgumentException paramString)
      {
        while (true)
          paramString.printStackTrace();
      }
    }
  }
}

/* Location:           GrehAndroidMe-dex2jar.jar
 * Qualified Name:     grackme.im.famous.d
 * JD-Core Version:    0.6.2
 */