求助大哥们帮帮忙,我把源码贴出来帮看下什么地方需要修改,谢谢了publicclassDESedeCoderTest{publicstaticvoidmain(String[]args)throwsException{StringsHexPlainText="0123456789...
求助大哥们帮帮忙,我把源码贴出来帮看下什么地方需要修改,谢谢了
public class DESedeCoderTest {
public static void main(String[] args) throws Exception {
String sHexPlainText = "0123456789abcdef";
String StrTreeDesKey = "njnjnbasxzsbuhklnx5lmxjs";
SecretKey skSecretkey = TDESCoder.tripleDesKey(StrTreeDesKey);
byte[] byteaPlainText = hexStr2ByteArr(sHexPlainText);
byte[] byteaCryptograph = TDESCoder.enc(byteaPlainText, skSecretkey);
byte[] byteaPlainTextAftDec = TDESCoder.dec(byteaCryptograph,
skSecretkey);
}
public static String byteArr2HexStr(byte[] bytea) throws Exception {
String sHex = "";
int iUnsigned &#