com.founder.core.utils.StringUtilsEx Maven / Gradle / Ivy
package com.founder.core.utils;
import org.apache.commons.lang3.StringUtils;
public class StringUtilsEx {
//编码程序
public static String encode64(String originStr, String baseTable)
{
if(StringUtils.isEmpty(originStr)||StringUtils.isEmpty(baseTable))
return "";
byte[] bytes = originStr.getBytes();
String s="";
for (int i = 0; i < bytes.length; i++) {
s += String.format("%02X", bytes[i]);
}
int addnum = bytes.length %3;
for(int i=0;i
© 2015 - 2024 Weber Informatics LLC | Privacy Policy