[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Is the Diffie-Hellman Key exchange algorithm available in java?

Posted on 2007-10-15
11
Medium Priority
?
2,523 Views
Last Modified: 2008-01-09
Hi expert,

Is the Diffie-Hellman Key exchange algorithm available in java?  If so, can someone show me some example codes?

Thanks,
4eyes
0
Comment
Question by:4eyesgirl
  • 5
  • 5
11 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 20081857
What would you use it for?
0
 

Author Comment

by:4eyesgirl
ID: 20081860
to exchange symmetric key for two party to communicate securely
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20081873
Why not just use secure sockets - it'd be much easier?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:4eyesgirl
ID: 20081902
I already write the code to use 3DES to encrypt and decrypt the code, so I think I only need to use Diffie-Hellman to generate a key set and will integrate it with the 3DES codes.  

I checked out the link below and it looks to me this is not so hard to do, am I wrong?
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/distrib/dsch_key_xihm.mspx?mfr=true

Just wondering if Java.secure support this algorithm and if so, how does it work.

0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20081922
Key exchange algos are already an internal part of SSL so whatever way you look at it, it's going to be easier for you just to use secure sockets
0
 

Author Comment

by:4eyesgirl
ID: 20081964
Okay, I see.  

As you probably aware, I am trying to learn the security concept here.

Does the SSL implements by using the crytography algorithm such as AES, RSA, etc...And it also uses the key exchange algorithm intenrally.  

So who should use java.security.*?  I am a bit confused.  In this case, everyone should use SSL but not the java.security.* classes?
0
 
LVL 92

Accepted Solution

by:
objects earned 2000 total points
ID: 20082005
0
 

Author Comment

by:4eyesgirl
ID: 20082017
CEJH -

I guess I have to reward objects the point this time as he provides the answer that I am looking for.

But I do like the fact that you try to find me a better solution.  So I will open a new question related to SSL.

Thanks
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20083648
>>So I will open a new question related to SSL.

Well we're back to the issue we had before. It's better to reopen this question and sometimes the only way that accords with site rules. We can discuss the purposes of these libraries further
0
 

Author Comment

by:4eyesgirl
ID: 20085825
This is kind of different because it is not really the same question.  My original question is to get an example of Diffi-Hallman codes and you provide other suggestion which is unrelated to this topic.

I think it is a different scenario.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20086614
Yes, it depends on what your objective is. If you want to transmit data to someone without a third party being able to read it then all you need is SSL
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month20 days, 9 hours left to enroll

868 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