阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js crypto.setEngine

      Node.js crypto.setEngine(engine[, flags])

      新增于: v0.11.11

      • engine < string>
      • flags <crypto.constants> Default: crypto.constants.ENGINE_METHOD_ALL

      Load and set the engine for some or all OpenSSL functions (selected by flags).

      engine could be either an id or a path to the engine’s shared library.

      The optional flags argument uses ENGINE_METHOD_ALL by default. The flags is a bit field taking one of or a mix of the following flags (defined in crypto.constants):

      • crypto.constants.ENGINE_METHOD_RSA
      • crypto.constants.ENGINE_METHOD_DSA
      • crypto.constants.ENGINE_METHOD_DH
      • crypto.constants.ENGINE_METHOD_RAND
      • crypto.constants.ENGINE_METHOD_EC
      • crypto.constants.ENGINE_METHOD_CIPHERS
      • crypto.constants.ENGINE_METHOD_DIGESTS
      • crypto.constants.ENGINE_METHOD_PKEY_METHS
      • crypto.constants.ENGINE_METHOD_PKEY_ASN1_METHS
      • crypto.constants.ENGINE_METHOD_ALL
      • crypto.constants.ENGINE_METHOD_NONE

      The flags below are deprecated in OpenSSL-1.1.0.

      • crypto.constants.ENGINE_METHOD_ECDH
      • crypto.constants.ENGINE_METHOD_ECDSA
      • crypto.constants.ENGINE_METHOD_STORE

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


      目录
      本文目录
      目录