阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js crypto cipher.setAAD

      Node.js crypto cipher.setAAD(buffer[, options])

      新增于: v1.0.0

      • buffer < Buffer>
      • options < Object> stream.transform options
        • plaintextLength < number>
      • Returns: < Cipher> for method chaining.

      When using an authenticated encryption mode (GCM, CCM and OCB are currently supported), the cipher.setAAD() method sets the value used for the additional authenticated data (AAD) input parameter.

      The options argument is optional for GCM and OCB. When using CCM, the plaintextLength option must be specified and its value must match the length of the plaintext in bytes. See CCM mode.

      The cipher.setAAD() method must be called before cipher.update().


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


      目录
      本文目录
      目录