package com.google.ctf.sandbox;
import
android.app.Activity;
import
android.os.Bundle;
import
android.view.View;
import
android.widget.Button;
import
android.widget.EditText;
import
android.widget.TextView;
/
*
renamed
from
: com.google.ctf.sandbox.ő reason: contains
not
printable characters
*
/
public
class
ActivityC0000 extends Activity {
/
*
renamed
from
:
class
reason:
not
valid java name
*
/
long
[] f0class;
/
*
renamed
from
: ő reason: contains
not
printable characters
*
/
int
f1;
/
*
renamed
from
: ő reason: contains
not
printable characters
and
collision with other field name
*
/
long
[] f2;
public ActivityC0000() {
try
{
this.f0class
=
new
long
[]{
40999019
,
2789358025L
,
656272715
,
18374979
,
3237618335L
,
1762529471
,
685548119
,
382114257
,
1436905469
,
2126016673
,
3318315423L
,
797150821
};
this.f2
=
new
long
[
12
];
this.f1
=
0
;
} catch (I unused) {
}
}
/
*
access modifiers changed
from
: protected
*
/
public void onCreate(Bundle savedInstanceState) {
super
.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final EditText editText
=
(EditText) findViewById(R.
id
.editText);
final TextView textView
=
(TextView) findViewById(R.
id
.textView);
((Button) findViewById(R.
id
.button)).setOnClickListener(new View.OnClickListener() {
/
*
class
com.google.ctf.sandbox.ActivityC0000.AnonymousClass1
*
/
public void onClick(View v) {
ActivityC0000.this.f1
=
0
;
try
{
StringBuilder keyString
=
new StringBuilder();
for
(
Object
chr
: new
Object
[]{
65
,
112
,
112
,
97
,
114
,
101
,
110
,
116
,
108
,
121
,
32
,
116
,
104
,
105
,
115
,
32
,
105
,
115
,
32
,
110
,
111
,
116
,
32
,
116
,
104
,
101
,
32
,
102
,
108
,
97
,
103
,
46
,
32
,
87
,
104
,
97
,
116
,
39
,
115
,
32
,
103
,
111
,
105
,
110
,
103
,
32
,
111
,
110
,
63
}) {
keyString.append(((Character)
chr
).charValue());
}
if
(editText.getText().toString().equals(keyString.toString())) {
textView.setText(
"验证成功"
);
}
else
{
textView.setText(
"验证失败"
);
}
} catch (J | Error | Exception unused) {
String flagString
=
editText.getText().toString();
if
(flagString.length() !
=
48
) {
textView.setText(
"验证失败"
);
return
;
}
for
(
int
i
=
0
; i < flagString.length()
/
4
; i
+
+
) {
ActivityC0000.this.f2[i]
=
(
long
) (flagString.charAt((i
*
4
)
+
3
) <<
24
);
long
[] jArr
=
ActivityC0000.this.f2;
jArr[i]
=
jArr[i] | ((
long
) (flagString.charAt((i
*
4
)
+
2
) <<
16
));
long
[] jArr2
=
ActivityC0000.this.f2;
jArr2[i]
=
jArr2[i] | ((
long
) (flagString.charAt((i
*
4
)
+
1
) <<
'\b'
));
long
[] jArr3
=
ActivityC0000.this.f2;
jArr3[i]
=
jArr3[i] | ((
long
) flagString.charAt(i
*
4
));
}
ActivityC0000 r6
=
ActivityC0000.this;
if
(((R.m0(ActivityC0000.this.f2[ActivityC0000.this.f1],
4294967296L
)[
0
]
%
4294967296L
)
+
4294967296L
)
%
4294967296L
!
=
ActivityC0000.this.f0class[ActivityC0000.this.f1]) {
textView.setText(
"验证失败"
);
return
;
}
ActivityC0000.this.f1
+
+
;
if
(ActivityC0000.this.f1 >
=
ActivityC0000.this.f2.length) {
textView.setText(
"验证成功"
);
return
;
}
throw new RuntimeException();
}
}
});
}
}