Diffie-Hellman is a cryptographic key agreement algorithm that allows two parties that have no prior knowledge of each other to jointly establish a shared secret key over an insecure communications channel. This key can then be used to encrypt subsequent communications using a symmetric key cipher.
![]()
We were asked at cryptography classes to develop such algorithm using the core java libraries. I made a little test – I think they call it jUnit – to prove that both famous Bob and infamous Alice share the same dirty little secret.. :)Source: http://nunojobpinto.googlepages.com/diffie-hellman.zip[EDIT: As Ruben pointed out Diffie-Hellman is vulnerable to man-in-the-middle attacks. This is a purely academic work and - despite the brilliance of the response - is not intended to be used as is. If you want to learn more about this maybe you should read about station-to-station and certificates. In Portuguese you can use the resources given to cryptography masters students at University of Minho]Also if your using Netbeans IDE 6 you are probably noticing that the themes SUCK. I don’t even mean this as it’s not eye-candy, I really mean they hurt the eyes and I am already using glasses due to the overwhelming amount of time I spend at my laptop.To surpass this I advise you to download these files:
- http://mediacast.sun.com/share/tor/org-netbeans-modules-ruby-themes.nbm
- http://www.ibrasten.com/com-superruby-netbeans-themes-fadetogrey.nbm
Now open your very own Netbeans IDE – wait 10 minutes for it to start – and then go to:
- Tools -> Plugins -> Downloaded -> Add
Now add the two files you have just downloaded and change the theme in Tools -> Preferences and you are ready to go.
Comments on: "Diffie-Hellman Java Implementation" (5)
Take care, the Diffie-Hellman is completely vulnerable to man-in-the-middle attacks!
It must be used with another cryptographic technique, or you may see yourself talking to a Eve :-)
Perhaps you should consider using Eclipse instead :-)
Btw, the link to the source is broken.
Cheers,
PP
kalo pake dotnet programnya gimana
[...] bu konudaki sayfasını inceleyebilirsiniz. Diffie Hellman hakkında başka bir yazıyı bu sayfada bulabilirsiniz. Burada da konuyla ilgili bir makale [...]
Help i want to run DH code in network for sending messages using encryption and decryption..DH will be used as key aggrement