String length must be a multiple of four.
程序员文章站
2022-07-10 15:31:13
...
import org.apache.commons.codec.binary.Base64;
public class Base64Tool {
/**
* 字节数组转Base64编码
*/
public static String byteToBase64(byte[] bytes) {
return new String(Base64.encodeBase64(bytes));
// return Base64.byteArrayToBase64(bytes);
}
import org.apache.commons.codec.binary.Base64;
import com.alibaba.druid.util.Base64; 报错String length must be a multiple of four.
推荐阅读
-
String length must be a multiple of four.
-
Des加密解密算法报错:Input length must be multiple of 8 when decrypting with padded cipher
-
AES加密/解密报错,Input length must be multiple of 16 when decrypting with padded cipher
-
javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with pad
-
Input length must be multiple of 8 when decrypting with padded cipher 错误
-
Input strings must be a multiple of 16 in length python 爬取时 AES 解码错误
-
java.lang.IllegalArgumentException: String length must be a multiple of four.
-
java对称加密报错:Input length must be multiple of 8 when decrypting with padded cipher
-
String length must be a multiple of four.
-
java AES 加密,报javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decryp