private static byte[] defaultIV = { 49, 50, 51, 52, 53, 54, 55, 56 };
private static String DES_ALGORITHM = "DESede/CBC/PKCS5Padding";
private static String Decode(String message,String srckey) throws UnsupportedEncodingException{
String key = getTrueKey(srckey);
byte[] desKey = key.getBytes();
byte[] msgByte = EncryptUtils.decodeBase64(message);
byte[] decodeByte = EncryptUtils.DESede(msgByte, DES_ALGORITHM, Cipher.DECRYPT_MODE, desKey, defaultIV);
return new String(decodeByte, "UTF-8");
}
有没有方法在PB中实现,或者谁有用过的可以支持的dll文件
1 个解决方案
#1
[还是写个dll,给pb调用吧]
#1
[还是写个dll,给pb调用吧]