I am getting a problem using jce1.2.2. Basically I have properties
file were I want to store a password encrypted and decrypt it at
runtime. I have managed to get a Test Harness working with jdk1.3.1
and also the default JRE that comes bundled with WSAD (WebSphere
Application Developer) and it works fine from the command line.
I then try and call the same code from my local WebSphere Server
running in the WSAD environment and I get a
java.security.NoSuchAlgorithmException: Cannot find any provider
supporting DES/ECB/PKCS5Padding
I know the WebSphere Application Server was using the
WSAD/HOME/plugins/com.ibm.etools.server.jdk.jre/
I updated java.security file for this jre to include
com.sun.crypto.provider.SunJCE
I am guess could there be a conflict between the IBM jce and Sun as
also in the jre/lib/ext is the following
ibmjcefw.jar & ibmjceprovider.jar
so I removed them and WAS would not start. To avoid confusion I
uninstalled the ibm server jre so believing my local copy of WebSphere
had to use the default jre that comes with WSAD?
Any help appreciated......
Thanks
Brian
> java.security.NoSuchAlgorithmException: Cannot find any provider
> supporting DES/ECB/PKCS5Padding
I use:
Provider sunJCE = new com.sun.crypto.provider.SunJCE();
Security.addProvider(sunJCE);
and then I can work with "DES"( same as "DES/ECB/PKCS5Padding" )
> I updated java.security file for this jre to include
> com.sun.crypto.provider.SunJCE
>
> I am guess could there be a conflict between the IBM jce and Sun as
> also in the jre/lib/ext is the following
I don't know, soory.
> Thanks
>
> Brian
greetings Peter
Thanks for the tip, I had actually tried before I read your mail and it works fine.
Thanks Again
Brian