阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js crypto diffieHellman.computeSecret

      Node.js crypto diffieHellman.computeSecret(otherPublicKey[, inputEncoding][, outputEncoding])

      新增于: v0.5.0

      • otherPublicKey < string> | < Buffer> | < TypedArray> | < DataView>
      • inputEncoding < string> The encoding of an otherPublicKey string.
      • outputEncoding < string> The encoding of the return value.
      • Returns: < Buffer> | < string>

      Computes the shared secret using otherPublicKey as the other party’s public key and returns the computed shared secret. The supplied key is interpreted using the specified inputEncoding, and secret is encoded using specified outputEncoding. If the inputEncoding is not provided, otherPublicKey is expected to be a Buffer, TypedArray, or DataView.

      If outputEncoding is given a string is returned; otherwise, a Buffer is returned.


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


      目录
      本文目录
      目录