DES3 encryption using java....

Can I get some sample code to do DES3 encryption using java. This code will be used in a servlet running on websphere 4.0.

This question is in conjunction with http://www.experts-exchange.com/Web/Q_21218980.html, for which I did not recieve adequate
answers.
LVL 5
apparitionAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

apparitionAuthor Commented:
I was trying to run the above code on WSAD but got an error on the statements

import javax.crypto.spec.*;
import javax.crypto.*;

do these functions work only a particular JDK version ?
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

CEHJCommented:
You need >= 1.4
0
sudhakar_koundinyaCommented:
0
apparitionAuthor Commented:
Websphere 4.0 uses JDK 1.2 so I can't really use this function.
0
CEHJCommented:
>>Websphere 4.0 uses JDK 1.2 so I can't really use this function.

It's pretty bad if you can't update the SDK - is that the case?
0
apparitionAuthor Commented:
I can't update the SDK, is there any other type of encryption that can be done (i.e PGP etc.)
0
CEHJCommented:
You could try to download an extension package, but i'm not sure if it provides the slgo you want:

http://java.sun.com/products/jce/index-122.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CEHJCommented:
8-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.