Solved

Encrypting and decryption in java and oracle using des3

Posted on 2004-09-08
5
381 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
servlet doXXX methods 3 50
how to add new optional parameter to JSP 1 42
Java exception bubble up 2 18
How do I remove an object from a 3 27
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.

831 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