Z
zhangzhihui528
Unregistered / Unconfirmed
GUEST, unregistred user!
在java中,提示代码为:
加密 Cipher wrapper = Cipher.getInstance("DESede/CBC/PKCS5Padding", "BC"
wrapper.init(Cipher.WRAP_MODE, new SecretKeySpec(key, "DESEDE", new IvParameterSpec(IV));
byte[] cryptograph = wrapper.wrap(new SecretKeySpec(original, "DESEDE");
解密
Cipher wrapper = Cipher.getInstance("DESede/CBC/PKCS5Padding", "BC"
wrapper.init(Cipher.UNWRAP_MODE, new SecretKeySpec(key, "DESEDE", new IvParameterSpec(IV));
Key original = wrapper.unwrap(cryptograph, "DESede", Cipher.SECRET_KEY);
但是不知道怎么在delphi里转化用。
希望高手给个提示。
加密 Cipher wrapper = Cipher.getInstance("DESede/CBC/PKCS5Padding", "BC"
wrapper.init(Cipher.WRAP_MODE, new SecretKeySpec(key, "DESEDE", new IvParameterSpec(IV));
byte[] cryptograph = wrapper.wrap(new SecretKeySpec(original, "DESEDE");
解密
Cipher wrapper = Cipher.getInstance("DESede/CBC/PKCS5Padding", "BC"
wrapper.init(Cipher.UNWRAP_MODE, new SecretKeySpec(key, "DESEDE", new IvParameterSpec(IV));
Key original = wrapper.unwrap(cryptograph, "DESede", Cipher.SECRET_KEY);
但是不知道怎么在delphi里转化用。
希望高手给个提示。