title: Diffie-Hellman Library for c++ and java
body: <p>I want to exchange a public key between a c++ application and and android application.
  I decided to use <a href="http://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange" rel="nofollow">Diffie-Hellman</a>. On the C++ side <a href="http://www.codeproject.com/Articles/70330/Implementation-of-Diffie-Hellman-Algorithm-of-Key" rel="nofollow">this</a> library looks promising for generating the keys with c++. Now I am looking for an implementation for java to generate the keys on the android smartphone. </p>
  
  <p>What libraries would you suggest, also on the c++ side?
  In the end i want to share the public key as a string via UDP.</p>
  
  <p>kind regards </p>