|
@@ -2,7 +2,6 @@ package cc.iotkit.common.utils;
|
|
|
|
|
|
import org.apache.commons.codec.binary.Base64;
|
|
import org.apache.commons.codec.binary.Base64;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
-import sun.misc.BASE64Decoder;
|
|
|
|
|
|
|
|
import javax.crypto.Cipher;
|
|
import javax.crypto.Cipher;
|
|
import javax.crypto.KeyGenerator;
|
|
import javax.crypto.KeyGenerator;
|
|
@@ -30,7 +29,7 @@ public class CodecUtil {
|
|
* @throws Exception 抛出异常
|
|
* @throws Exception 抛出异常
|
|
*/
|
|
*/
|
|
private static byte[] base64Decode(String base64Code) throws Exception {
|
|
private static byte[] base64Decode(String base64Code) throws Exception {
|
|
- return StringUtils.isEmpty(base64Code) ? null : new BASE64Decoder().decodeBuffer(base64Code);
|
|
|
|
|
|
+ return StringUtils.isEmpty(base64Code) ? null : new Base64().decode(base64Code);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|