如下图,密码后有好多方框,在byte[]中是多个0,当插入数据库时肯定会过长,必须切除方框
public String Decrypt(String inblock)//解密
{
byte input[]=new byte[64];
byte output[]=new byte[64];
String outstring = "";
byte temp[] = new byte[64];
System.arraycopy(inblock.getBytes(),0,temp,0,inblock.length());
copyFromOctes(temp,input,inblock.length());
d3.decrypt(input,0,output,0);
outstring = new String(output).trim();//byte[]使用new String后要trim才能去除后面的方框
return outstring;
}