title: Elliptic Curve Cryptography in React Native
body: <p>Does anyone know if there is an implementation of Elliptic Curve Diffie Hellman cryptography (ECDH) for React Native?</p>
  
  <p>I found some libraries for this. each of them has some issues:</p>
  
  <ol>
  <li><a href="https://github.com/tradle/react-native-ecc" rel="noreferrer">react-native-ecc</a>: it only generates key pairs and does not implement generating shared key(secret key) from private and public key for encryption</li>
  <li><a href="https://www.npmjs.com/package/react-native-crypto" rel="noreferrer">react-native-crypto</a>: it uses some hacks and changes node_modules recursively and i think it's not stable.</li>
  <li><a href="https://www.npmjs.com/package/elliptic" rel="noreferrer">elliptic</a> : it's in a plain javascript implementation and it does not work in react native</li>
  </ol>