.net中的文件加密和Java中的解密 [英] File encryption in .net and decryption in java

查看:128
本文介绍了.net中的文件加密和Java中的解密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人拥有用于AES的代码或任何其他适用于.net文件加密和Java文件解密的代码吗?
需要加密几种类型的文件,例如.jpg,.doc等.

Is anybody having code for AES or any other suitable code for .net file encryption and java file decryption?
Need to encrypt few types of files like .jpg, .doc etc.

推荐答案

只需在c#和java中都实现它.因为算法实现是相同的,所以它应该在Java和C#之间都能正常工作,反之亦然.如果每种语言都需要一个额外的转换器或每种语言实现的东西,将变得非常困难.

C#:
http://www.gutgames.com/post/AES-Encryption-in-C.aspx [ ^ ]

http://msdn.microsoft.com/en-us/magazine/cc164055.aspx [ ^ ]

Java:
http://java.sun.com/developer/technicalArticles/Security/AES/AES_v1.html [^ ]

http://www.aescrypt.com/java_aes_crypt.html [
Simply implement it in both c# and java. It should work fine between java and c# and vice versa because the algorithm implementation is the same. It would become very difficult if every language needed an extra converter or something for each language implementation.

C#:
http://www.gutgames.com/post/AES-Encryption-in-C.aspx[^]

http://msdn.microsoft.com/en-us/magazine/cc164055.aspx[^]

Java:
http://java.sun.com/developer/technicalArticles/Security/AES/AES_v1.html[^]

http://www.aescrypt.com/java_aes_crypt.html[^]

Good luck!


谢谢您的链接.我经历了他们.但这最终要么使用某些第三方工具...有人在没有任何第三方工具的情况下就具有有效的代码吗?
Hey thanks for the links. I went through them. But it ends up either using some Third Party tool... Is anyone having a working code without the usage of any third party tool??


这篇关于.net中的文件加密和Java中的解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆