Solved

Encrypting and decryption in java and oracle using des3

Posted on 2004-09-08
5
380 Views
Last Modified: 2008-03-10
WE have Encrypted a value in java and try to decrypt in oracle using the same key, we do not get the same results.

Any ideas would be really apreciated
0
Comment
Question by:inzaghi
  • 3
5 Comments
 
LVL 12

Accepted Solution

by:
Giant2 earned 400 total points
ID: 12007692
The theory says:
keys A,B
Algorithm X
DataYYY

Enchrypt the DataYYY using X and keys A,B obtain jjj

Dechrypt the jjj using X and keys A,B obtain DataYYY

This is a must.
Maybe the conversion occurring in the Oracle DB (I had some problem with it) could change the enchrypted data (jjj), so when try to dechrypt the data is different from the original.
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12007741
Could you print the data after the cypher (in java side) and before the decypher (in Oracle side)?
In this manner you can know if the data are changed during the communication from Java to Oracle.
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 100 total points
ID: 12009734
btw inzaghi - what's getting encrypted - passwords?
0
 

Author Comment

by:inzaghi
ID: 12025193
Thanks for your help guys I have decided to decrypt/encrypt using oracle and not both
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12025244
Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now