I have to make an application which can encrypt and decrypt a text file using IDEA (International Data Encryption Algorithm) in Java or C#. I know that in Java there is an inbuilt JCE (Java Cryptography Extension) but how do I proceed further, will anybody please give me some suggestions?
Can't comment for whatever reason, so I am posting this as a reply.
IDEA is a patented algorithm and patents expire only in 2011 and 2012 (depending on the country). Also it's not best-performing at all. So unless you have a requirement to use IDEA, I'd suggest looking at AES or RC4 (ARCFOUR, as RC4 name is a registered trademark) algorithms. RC4 is faster, but heavily depends on quality of the encryption key.
Eugene is right regarding IDEA. If it is under your choice, it would be reasonable to avoid using IDEA and choose some other algorithm. Due to the patent issues, IDEA is used quite rarely and thus it is less investigated by the cryptanalysts. Besides, the length of IDEA key is restricted with 128 bits that is likely to become insufficient relatively soon.
Most of (not to say absolutely all) development frameworks include support for standard cryptographic algorithms. As a matter of fact, it is always good to use standardized algorithms, as they are best-studied by the cryptanalysts. AES128/256 is a preferred choice. The maximal lenth of RC4 key, as well as IDEA key, is 128 bits; besides, it is also a kind of exotic and may be unsupported by some frameworks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With