File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/org/owasp/wrongsecrets/challenges/docker Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1212import javax .crypto .spec .IvParameterSpec ;
1313import javax .crypto .spec .SecretKeySpec ;
1414import lombok .extern .slf4j .Slf4j ;
15- import org .apache . commons . codec . binary .Base64 ;
15+ import org .bouncycastle . util . encoders .Base64 ;
1616import org .owasp .wrongsecrets .RuntimeEnvironment ;
1717import org .owasp .wrongsecrets .ScoreCard ;
1818import org .owasp .wrongsecrets .challenges .Challenge ;
@@ -93,6 +93,6 @@ private String decrypt(String ciphertext)
9393
9494 Cipher cipher = Cipher .getInstance ("AES/CBC/PKCS5PADDING" );
9595 cipher .init (Cipher .DECRYPT_MODE , skeySpec , iv );
96- return new String (cipher .doFinal (Base64 .decodeBase64 (ciphertext )));
96+ return new String (cipher .doFinal (Base64 .decode (ciphertext )));
9797 }
9898}
You can’t perform that action at this time.
0 commit comments