FlowerApp

Catgeory: Reversing
Points: 200
Solves: 17

Protect your API Key

Catgeory: Reversing
Points: 400
Solves: 12

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
public static String decryptMsg(byte[] cipherText) throws Exception {
SecretKey secret = new SecretKeySpec("er34rgr3443.,g,3-09gjs@[wpef9j3j".getBytes(), "AES");
Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
cipher.init(2, secret);
String decryptString = new String(cipher.doFinal(cipherText), "UTF-8");
return decryptString;
}

public static void main(String[] args) {
try {
byte[] data = Base64.getDecoder().decode("9Bmk+Nc8i7oz2+sRYI9Q1fZ/metvBlUzoMMdC2aLstA=");
String api_key = decryptMsg(data);
System.out.println(api_key);
} catch (Exception e) {
throw new RuntimeException(e);
}
}

Flag: flag{3fh9.gkf29j.7}