ISG2014 AFERE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. | |
// Jad home page: http://www.kpdus.com/jad.html | |
// Decompiler options: packimports(3) | |
package com.easy.crackme; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.text.Editable; | |
import android.view.View; | |
import android.widget.EditText; | |
import android.widget.TextView; | |
import java.security.*; | |
import java.security.spec.InvalidKeySpecException; | |
import javax.crypto.*; | |
import javax.crypto.spec.DESKeySpec; | |
public class MainActivity extends Activity | |
{ | |
public MainActivity() | |
{ | |
} | |
public String b(byte abyte0[]) | |
throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeySpecException, IllegalBlockSizeException, BadPaddingException | |
{ | |
byte abyte1[]; | |
int i; | |
char ac[]; | |
int j; | |
int k; | |
SecureRandom securerandom = new SecureRandom(); | |
DESKeySpec deskeyspec = new DESKeySpec("Mem3d4Da".getBytes()); | |
Cipher cipher = Cipher.getInstance("DES"); | |
cipher.init(1, SecretKeyFactory.getInstance("DES").generateSecret(deskeyspec), securerandom); | |
abyte1 = cipher.doFinal(abyte0); | |
i = abyte1.length; | |
ac = new char[4 * ((i + 2) / 3)]; | |
j = 0; | |
k = 0; | |
_L6: | |
if(j < i) goto _L2; else goto _L1 | |
_L1: | |
i % 3; | |
JVM INSTR tableswitch 1 2: default 108 | |
// 1 306 | |
// 2 331; | |
goto _L3 _L4 _L5 | |
_L3: | |
k; | |
_L7: | |
return new String(ac); | |
_L2: | |
int l = j + 1; | |
byte byte0 = abyte1[j]; | |
int i1; | |
byte byte1; | |
int j1; | |
byte byte2; | |
int k1; | |
int l1; | |
int i2; | |
if(l < i) | |
{ | |
i1 = l + 1; | |
byte1 = abyte1[l]; | |
} else | |
{ | |
i1 = l; | |
byte1 = 0; | |
} | |
if(i1 < i) | |
{ | |
j1 = i1 + 1; | |
byte2 = abyte1[i1]; | |
} else | |
{ | |
j1 = i1; | |
byte2 = 0; | |
} | |
k1 = k + 1; | |
ac[k] = a[0x3f & byte0 >> 2]; | |
l1 = k1 + 1; | |
ac[k1] = a[0x3f & (byte0 << 4 | (byte1 & 0xff) >> 4)]; | |
i2 = l1 + 1; | |
ac[l1] = a[0x3f & (byte1 << 2 | (byte2 & 0xff) >> 6)]; | |
k = i2 + 1; | |
ac[i2] = a[byte2 & 0x3f]; | |
j = j1; | |
goto _L6 | |
_L4: | |
int j2; | |
j2 = k - 1; | |
ac[j2] = '*'; | |
_L8: | |
ac[j2 - 1] = '*'; | |
goto _L7 | |
_L5: | |
j2 = k; | |
goto _L8 | |
} | |
public void confirm(View view) | |
throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeySpecException, IllegalBlockSizeException, BadPaddingException | |
{ | |
TextView textview = (TextView)findViewById(0x7f05003d); | |
if(b(((EditText)findViewById(0x7f05003c)).getText().toString().getBytes()).equals("OKBvTrSKXPK3cObqoS21IW7Dg0eZ2RTYm3UrdPaVTdY*")) | |
{ | |
textview.setText("You find the Key"); | |
return; | |
} else | |
{ | |
textview.setText("Wrong"); | |
return; | |
} | |
} | |
protected void onCreate(Bundle bundle) | |
{ | |
super.onCreate(bundle); | |
setContentView(0x7f030018); | |
} | |
private static final char a[] = "S4wp902KOV7QRogXdIUCMW1/ktz8sa5c3xePGfENuDTvBFqAmrbnLlHZYyhJij6+".toCharArray(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment