Solved

DES3 in java and oracle

Posted on 2004-09-01
10
361 Views
Last Modified: 2008-03-06
If the same sequence of bytes is to used to create a DES3 key in java and in ORacle would they yield the same results.

For instance we are encrypting data in java using des3 and want to load the data into Oracle.  ORacle des3 utilities will be used to decyrpt this data.

I am wondering would this work, would  these yield the same results?
0
Comment
Question by:inzaghi
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 12

Expert Comment

by:Giant2
Comment Utility
If the keys and the data are the same, de codification must be the same.
0
 
LVL 7

Assisted Solution

by:bvanderveen
bvanderveen earned 100 total points
Comment Utility
Not familiar with DES3, but with most encryption, the results will not necessarily be the same (SHA-1, MD5).  You can decrypt to the same original result, but the encrypted value is likely to be different, even if encoded twice on the same system.
0
 
LVL 7

Expert Comment

by:bvanderveen
Comment Utility
But, I do think the result should be the same for decrypted answers.  If there is some difference in the algorithms, you can load java DES3 into the database as a Java Stored Procedure and call it that way, so it will be identical to your java result.
0
 
LVL 35

Assisted Solution

by:TimYates
TimYates earned 100 total points
Comment Utility
> not necessarily be the same (SHA-1, MD5).  You can decrypt to the same original result

Just to point out that you can't decrypt MD5 ;-)

Just for people who might find this Q at a later date :-)
0
 
LVL 7

Expert Comment

by:bvanderveen
Comment Utility
>>Just to point out that you can't decrypt MD5 ;-)

You can too.  Submit your hash here:  http://passcracking.com/

They use "Rainbow tables" and a few algorithims over my head to do so.  

Almost nothing is uncrackable.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 12

Expert Comment

by:Giant2
Comment Utility
Like I told before.
With DES if you cypher the same data with the same keys, you MUST obtain the same result.
(Obviously when decypher the decyphered data are the same).
DES is different from MD5. MD5 is classified as an hashing technique, so their behaviour are not the same.
0
 
LVL 35

Expert Comment

by:TimYates
Comment Utility
> You can too.

Hmmm...that's brute force cracking...  not decrypting...  There is a slight (but significant) difference...
0
 

Author Comment

by:inzaghi
Comment Utility
To finish off Its correct that using the same keys to encrypt in java with des3 and  des3 in oracle 9i would yield the same results.
0
 
LVL 12

Accepted Solution

by:
Giant2 earned 300 total points
Comment Utility
>To finish off Its correct that using the same keys to encrypt in java with des3 and  des3 in oracle 9i would yield the same results.

Yep!;
0
 
LVL 12

Expert Comment

by:Giant2
Comment Utility
Thanks.
:)
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
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 …
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…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

763 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

10 Experts available now in Live!

Get 1:1 Help Now