Private static byte [] defaultIV={51, 49, 50, 52, 53, 54, 55, 56};
Private static String DES_ALGORITHM="DESede/CBC/PKCS5Padding";
Private static String Decode (String message, String srckey) throws UnsupportedEncodingException {
The 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 a new String (decodeByte, "utf-8");
}
Any method is realized in PB, or who used to support the DLL file
CodePudding user response:
Give pb call or write a DLL,CodePudding user response:
https://blog.csdn.net/softvery/article/details/89052805Guo_vdn. DesDecode (mle_2. Text, sle_key. Text)