Solved

Encrypting and decryption in java and oracle using des3

Posted on 2004-09-08
5
379 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
Comment Utility
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
Comment Utility
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
Comment Utility
btw inzaghi - what's getting encrypted - passwords?
0
 

Author Comment

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

Expert Comment

by:Giant2
Comment Utility
Thanks.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

771 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

12 Experts available now in Live!

Get 1:1 Help Now