Home > Security Tips > Network Security Tactics > Diffie-Hellman key exchange
Security Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

Diffie-Hellman key exchange


Mike Chapple, CISSP
Rating: -4.00- (out of 5)

If you've had any experience choosing a cryptographic algorithm, you've probably faced a common dilemma at one time or another: should you use an asymmetric (public key) or symmetric (private key) algorithm?

From a key exchange point-of-view, public key algorithms are much simpler to administer. Users may freely share their public keys over insecure transmission channels without fear of compromising the cryptosystem. In order for pure private key systems to remain truly secure, offline key exchange techniques (such as a floppy diskette) must be used. On the other hand, symmetric algorithms generally operate much faster than their asymmetric counterparts.

Diffie-Hellman key exchange offers the best of both worlds -- it uses public key techniques to allow the exchange of a private encryption key! Let's take a look at how the protocol works, from the perspective of Alice and Bob, two users who wish to establish secure communications. We can assume that Alice and Bob k...


BROWSE BY TAG
Security Basics,   Network Security Tactics,   Enterprise Data Protection,   Disk Encryption and File Encryption,   VIEW ALL TAGS

RELATED CONTENT
Security Basics
Countdown begins for Mydoom DDoS attacks
Hackers scanning for ports opened by Mydoom
National cybersecurity alert system launched
Dangerous, familiar application vulnerabilities top list
Potent Mydoom worm flooding inboxes
Norton woes blamed on bad VeriSign certificates
Microsoft: Word password not a security tool
Face-off: Hiring a hacker
November 2003: The best of SearchSecurity.com
Alert: New RPC vulnerabilities

Network Security Tactics
What to do with network penetration test results
How to use TrueCrypt for disk encryption
Protecting enterprise networks from new mobile application downloads
Maintaining security after a cloud computing implementation
Preparing the network for a cloud computing implementation
PuTTY configuration tips: How to connect to remote network systems
A guide to internal and external network security auditing
How to keep networks secure when deploying an 802.11n upgrade
Screencast: Find rogue wireless access points with Vistumbler
How to provide access to Web content (while ensuring network security)

Disk Encryption and File Encryption
No major PCI DSS revision expected in 2010
How to use TrueCrypt for disk encryption
The future of PCI DSS encryption requirements? Tokenization for PCI
What are the top three network intrusion techniques?
Health Net healthcare data breach affects1.5 million
Prevent meet-in-the-middle attacks with TDES encryption
Heartland CIO is critical of First Data's credit card tokenization plan
Heartland CIO on end-to-end encryption, credit card tokenization
Should developers create libraries of common cryptographic algorithms?
What is an encryption collision?

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Advanced Encryption Standard  (SearchSecurity.com)
data key  (SearchSecurity.com)
Encrypting File System  (SearchSecurity.com)
encryption  (SearchSecurity.com)
Escrowed Encryption Standard  (SearchSecurity.com)
network encryption  (SearchSecurity.com)
output feedback  (SearchSecurity.com)
Quiz: Cryptography  (SearchSecurity.com)
Rijndael  (SearchSecurity.com)
Twofish  (SearchSecurity.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


now nothing about each other but are in contact. Here are the nine steps of the process:

  1. Communicating in the clear, Alice and Bob agree on two large positive integers, n and g, with the stipulation that n is a prime number and g is a generator of n.

  2. Alice randomly chooses another large positive integer, XA, which is smaller than n. XA will serve as Alice's private key.

  3. Bob similarly chooses his own private key, XB.

  4. Alice computes her public key, YA, using the formula YA = (g^XA) mod n.

  5. Bob similarly computes his public key, YB, using the formula YB = (g^XB) mod n.

  6. Alice and Bob exchange public keys over the insecure circuit.

  7. Alice computes the shared secret key, k, using the formula k = (YB ^XA) mod n.

  8. Bob computes the same shared secret key, k, using the formula k = (YA ^XB) mod n.

  9. Alice and Bob communicate using the symmetric algorithm of their choice and the shared secret key, k, which was never transmitted over the insecure circuit.

Pretty nifty, eh? Diffie-Hellman key exchange is actually nothing new. It's been around since Whitfield Diffie and Martin Hellman published it in their 1976 paper, "New Directions in Cryptography." However, the recent surge of interest in cryptography and secure communications have increased awareness of the protocol. In fact, you've probably unknowingly used the Diffie-Hellman protocol on a daily basis. It's used by popular protocols like SSL and SSH.


About the author
Mike Chapple, CISSP, currently serves as Chief Information Officer of the Brand Institute, a Miami-based marketing consultancy. He previously worked as an information security researcher for the U.S. National Security Agency. His publishing credits include the TICSA Training Guide from Que Publishing, the CISSP Study Guide from Sybex and the upcoming SANS GSEC Prep Guide from John Wiley. He's also the About.com Guide to Databases.


Rate this Tip
To rate tips, you must be a member of SearchSecurity.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Research Solutions for Network Security, Access Control and Security Threats
TechTarget Security Media
Information Security View this month\\'s issue and subscribe today.
Information Security Decisions Apply online for free conference admission.
SearchSecurity.com
HomeNewsMagazineMultimediaWhite PapersLearningAdviceTopicsEventsAbout Us

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2003 - 2010, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts