0

I want to use createECDH function provided by crypto module in nodejs. I downloaded all the dependencies. Webpack does not add createECDH function in my resultant javascript files. How to use createECDH function of crypto available in node.

it adds number of functions like createCipher, createDechiper, createDiffihelman, listCiphers, getCiphers etc.

Shivanshu Goyal
  • 500
  • 9
  • 25

1 Answers1

1

Possibly you're using old version of crypto lib. According to docs, ECDH class was added in v0.11.14, later than the rest of functions you mentioned.

It would be nice to see your code.

Teukros
  • 82
  • 5