如何实现IDEA? [英] How to implement IDEA?
问题描述
我必须创建一个应用程序,它可以使用IDEA(国际数据加密算法)在Java或C#中加密和解密文本文件。我知道在Java有内置的JCE(Java加密扩展),但如何进一步,任何人都可以给我一些建议吗?
I have to make an application which can encrypt and decrypt text file using IDEA(International Data Encryption Algorithm) in java or C#. I know that in java there is inbuilt JCE(Java Cryptography Extension) but how to proceed further, will anybody please give me some suggestions?
谢谢。
推荐答案
您可以尝试使用 BouncyCastle ,可用于Java和C#。但是,根据此注意,您需要获得适合IDEA支持的正确jars(假设Java) / a>:
You could try to use BouncyCastle, which is available for Java and C#. However, you'll need to get the right jars (assuming Java) for IDEA support, according to this note:
从版本1.40开始,IDEA加密算法的实现
从常规jar中删除
文件在
请求的一些用户。具有格式 -ext - 仍然
的Jars
包括IDEA实现。
From release 1.40 the implementation of the IDEA encryption algorithm was removed from the regular jar files at the request of a number of users. Jars with names of the form -ext- still include the IDEA implementation.
EDIT (添加指针示例):
我没有尝试,但我认为 DESExample 可以通过替换 DESedeEngine
与am IDEAEngine
(类似于其他类)。
EDIT (added pointer to example):
I haven't tried, but I think that the DESExample could be adapted to do what you want, probably by replacing the DESedeEngine
with am IDEAEngine
(and similar for other classes).
这篇关于如何实现IDEA?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!