mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-11-26 07:16:58 +00:00
fix: mitigate Java4Shell in Base64 decoders and containers
This commit is contained in:
1 parent
b6922b152f
commit
8c07c6e657
17 files changed
+231
-22
No files matched your search
@@ -219,12 +219,12 @@ public class AESUtils {
|
||||
*/
|
||||
public static String decryptByBase64AES(String encrypted, String keyString) throws IllegalBlockSizeException,
|
||||
BadPaddingException, InvalidKeyException, NoSuchPaddingException, NoSuchAlgorithmException {
|
||||
return decryptByAES(Base64.getDecoder().decode(encrypted), keyString);
|
||||
return decryptByAES(Base64Decoder.decode(encrypted), keyString);
|
||||
}
|
||||
|
||||
public static String decryptByBase64AES(String encrypted, Key key) throws IllegalBlockSizeException,
|
||||
BadPaddingException, InvalidKeyException, NoSuchPaddingException, NoSuchAlgorithmException {
|
||||
return decryptByAES(Base64.getDecoder().decode(encrypted), key);
|
||||
return decryptByAES(Base64Decoder.decode(encrypted), key);
|
||||
}
|
||||
|
||||
// ================================飞机盘Id解密========================================== //
|
||||
|
||||
Reference in new issue
Block a user