阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js crypto ecdh.generateKeys

      Node.js crypto ecdh.generateKeys([encoding[, format]])

      新增于: v0.11.14

      • encoding < string> The encoding of the return value.
      • format < string> Default: ‘uncompressed’
      • Returns: < Buffer> | < string>

      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 argument specifies point encoding and can be ‘compressed’ or ‘uncompressed’. If format is not specified, the point will be returned in ‘uncompressed’ format.

      If encoding is provided a string is returned; otherwise a Buffer is returned.


      更多内容请参考:Node.js crypto 加密,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录