zf97576419
zfcode
采纳率0%
2016-01-31 16:03 阅读 1.6k

求助下~java的Desede加密转换为.net可用的,谢谢

20

java代码:

 String paramString="112233445566";
byte[] aes_key = "1234567890123".getBytes();
byte[] arrayOfByte = Base64.decode(paramString.getBytes("UTF-8"), 2);
SecretKeySpec localSecretKeySpec = new SecretKeySpec(aes_key, "DESede");
Cipher localCipher = Cipher.getInstance("DESede");
localCipher.init(2, localSecretKeySpec);
String str = new String(localCipher.doFinal(arrayOfByte), "UTF-8");
return str;

求大神给个能得到相同结果的.net的代码。谢谢~~

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

2条回答 默认 最新

相关推荐