ecdh.generateKeys()

ecdh.generateKeys([encoding[, format]])

Generates private and public EC Diffie-Hellman key values, and returns the public key in the specified format and encoding. This key should be transferred to the other party.

The format arguments specifies point encoding and can be 'compressed', 'uncompressed', or 'hybrid'. If format is not specified, the point will be returned in 'uncompressed' format.

The encoding argument can be 'binary', 'hex', or 'base64'. If encoding is provided a string is returned; otherwise a Buffer is returned.

doc_Nodejs
2016-04-30 04:39:06
Comments
Leave a Comment

Please login to continue.