import
com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
import
javax.crypto.Cipher;
import
javax.crypto.spec.SecretKeySpec;
public
class
decode {
public
static
String base64 =
"pLFw0Gh8EQFJJU9fxmoK1jRE0yxmkpakGxEWdydK/Yg="
;
public
static
void
main(String argv[]){
System.out.println(GetFlag());
}
static
String GetFlag() {
byte
[] aeskey =
new
byte
[]{(
byte
)
119
, (
byte
)
111
, (
byte
)
119
, (
byte
)
44
, (
byte
)
105
, (
byte
)
116
, (
byte
)
39
, (
byte
)
115
, (
byte
)
115
, (
byte
)
111
, (
byte
)
98
, (
byte
)
114
, (
byte
)
117
, (
byte
)
116
, (
byte
)
97
, (
byte
)
108
};
try
{
byte
[] encryptedData = Base64.decode(base64);
SecretKeySpec skeySpec =
new
SecretKeySpec(aeskey,
"AES"
);
Cipher cipher = Cipher.getInstance(
"AES/ECB/PKCS5Padding"
);
cipher.init(
2
, skeySpec);
return
new
String(cipher.doFinal(encryptedData));
}
catch
(Exception e) {
e.printStackTrace();
return
"There must be some bug"
;
}
}
}