From: Shri <sh...@ne...> - 2007-02-07 17:13:25
|
Hi All, We are migrating our application from Websphere application server 3.5.7(WAS3.5) to WebSphere 6.x(WAS6) . During this process, the passwords which are encrypted on WAS3.5 are not able to decrypt in WAS6. I believe that WAS3.5 supports JDK.1.2.2 while as WAS6 supports J2RE 1.4.2. We are using Cryptix3.2, I increased the debug level in the properties files(Cryptix.properties and IJCE.properties) and got the following output in the application server Trace file. Any help or suggestion is appreciated. By the By , we are using Blowfish algorithm for 2-way encryption. Note: The passwords which are encrypted using WAS6 are able to decrypt successfully using WAS6. No issue here. [2/7/07 11:34:31:062 EST] 00000040 SystemErr R Blowfish: crc = 55861A61 [2/7/07 11:34:31:062 EST] 00000040 SystemErr R Blowfish: Good CRC on initial P and S boxes? true [2/7/07 11:34:31:062 EST] 00000040 SystemErr R Blowfish: Using native library? false [2/7/07 11:34:31:094 EST] 00000040 SystemErr R <Cipher [Cryptix Blowfish/ECB/NONE]>.engineInitDecrypt(<cryptix.provider.key.RawSecretKey@51c 52c7c>) [2/7/07 11:34:31:094 EST] 00000040 SystemErr R Blowfish: Self Test 1 Good [2/7/07 11:34:31:125 EST] 00000040 SystemErr R Blowfish: Self Test 2 Good [2/7/07 11:34:31:125 EST] 00000040 SystemErr R <Cipher [Cryptix Blowfish/ECB/NONE]>.engineOutBufferSize(8, true) = 8 [2/7/07 11:34:31:125 EST] 00000040 SystemErr R <Cipher [Cryptix Blowfish/ECB/NONE]>.engineOutBufferSize(8, false) = 8 [2/7/07 11:34:31:125 EST] 00000040 SystemErr R <Cipher [Cryptix Blowfish/ECB/NONE]>.engineUpdate(<[B@33897a14>, 0, 8, <[B@3481ba14>, 0) = 8 [2/7/07 11:34:31:125 EST] 00000040 SystemErr R <PaddingScheme [PKCS#5]>.engineUnpad(<[B@3481ba14>, 0, 8) = 6 [2/7/07 11:42:22:328 EST] 0000003f SystemErr R <Cipher [Cryptix Blowfish/ECB/NONE]>.engineInitDecrypt(<cryptix.provider.key.RawSecretKey@51c 52c7c>) [2/7/07 11:42:22:328 EST] 0000003f SystemErr R Blowfish: Self Test 1 Good [2/7/07 11:42:22:328 EST] 0000003f SystemErr R Blowfish: Self Test 2 Good [2/7/07 11:42:22:328 EST] 0000003f SystemErr R <Cipher [Cryptix Blowfish/ECB/NONE]>.engineOutBufferSize(8, true) = 8 [2/7/07 11:42:22:328 EST] 0000003f SystemErr R <Cipher [Cryptix Blowfish/ECB/NONE]>.engineOutBufferSize(8, false) = 8 [2/7/07 11:42:22:328 EST] 0000003f SystemErr R <Cipher [Cryptix Blowfish/ECB/NONE]>.engineUpdate(<[B@62b23a43>, 0, 8, <[B@6380fa43>, 0) = 8 [2/7/07 11:42:22:328 EST] 0000003f SystemErr R <PaddingScheme [PKCS#5]>.engineUnpad(<[B@6380fa43>, 0, 8) = -169 [2/7/07 11:42:22:328 EST] 0000003f SystemErr R java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at xjava.security.Cipher.updateInternal(Cipher.java:1363) at xjava.security.Cipher.crypt(Cipher.java:1046) at xjava.security.Cipher.crypt(Cipher.java:1011) at com.nc.pt.util.ABlowfishEncryptor.decrypt(ABlowfishEncryptor.java:45) at com.nc.pt.util.AEncryptor.decrypt(AEncryptor.java:287) at com.nc.pt.util.AUserUtility.decryptMessage(AUserUtility.java:291) at com.nc.pt.ejb.util.AEJBUtility.decryptTradingPassword(AEJBUtility.java:453) at com.nc.pt.dao.AUserDAO.getClientUserProfile(AUserDAO.java:198) at com.nc.pt.ejb.sb.AUserLoginSessionBean.getUserProfile(AUserLoginSessionBean. java:698) at com.nc.pt.ejb.sb.EJSRemoteStatelessAUserLoginSession_2ef31969.getUserProfile (EJSRemoteStatelessAUserLoginSession_2ef31969.java:432) at com.nc.pt.ejb.sb._AUserLoginSession_Stub.getUserProfile(_AUserLoginSession_S tub.java:635) at com.nc.pt.delegates.AUserDelegate.getUserProfile(AUserDelegate.java:35) at com.nc.pt.servlet.helper.AAuthenticateUser.getClientUserProfile(AAuthenticat eUser.java:273) at com.nc.pt.servlet.helper.AAuthenticateUser.checkForRegisteredUser(AAuthentic ateUser.java:159) at com.nc.pt.servlet.helper.AAuthenticateUser.authenticateUser(AAuthenticateUse r.java:47) at com.nc.pt.servlet.helper.AAuthenticateUser.process(AAuthenticateUser.java:52 9) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85 ) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.nc.pt.servlet.AControlServlet.invokeMethod(AControlServlet.java:477) at com.nc.pt.servlet.AControlServlet.service(AControlServlet.java:191) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1 212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper. java:629) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServl etWrapper.java:80) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(Ht tpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(Ht tpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLRea dCallback.java:94) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManage r.java:548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java :601) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java :934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.jav a:1021) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332) Let me know if additional information is required. Thanks Shri |