问题描述
- 求助下~java的Desede加密转换为.net可用的,谢谢
-
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的代码。谢谢~~
解决方案
贴出你的java的结果,我好对照。
解决方案二:
等了很久也没看到你贴出测试数据,这里给你两个参考
http://www.cnblogs.com/poe-blog/archive/2012/07/11/2585979.html
http://blog.csdn.net/fangbinren1/article/details/7677241
时间: 2024-09-22 04:00:46