We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c097cdb commit c3adb26Copy full SHA for c3adb26
src/main/java/org/owasp/wrongsecrets/challenges/docker/Challenge35.java
@@ -97,6 +97,6 @@ private String decrypt(String ciphertext)
97
98
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5PADDING");
99
cipher.init(Cipher.DECRYPT_MODE, skeySpec, iv);
100
- return new String(cipher.doFinal(Base64.decode(ciphertext.getBytes(StandardCharsets.UTF_8))));
+ return new String(cipher.doFinal(Base64.decode(ciphertext.getBytes(StandardCharsets.UTF_8))), StandardCharsets.UTF_8);
101
}
102
0 commit comments