{"_id":"@polyv/request-plugin-sm2","_rev":"32-8675b5998edcd707ca1a0738a4e02770","name":"@polyv/request-plugin-sm2","dist-tags":{"temp":"2.8.1","latest":"2.8.1","v2-latest":"2.8.1"},"versions":{"2.0.0":{"name":"@polyv/request-plugin-sm2","version":"2.0.0","_id":"@polyv/request-plugin-sm2@2.0.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"heeroluo","email":"heeroluo@126.com"},{"name":"easefun-ci","email":"polyv@163.com"}],"dist":{"shasum":"2ef20f654271633cf6df5e85920cac1371c5648d","tarball":"https://registry.npmjs.org/@polyv/request-plugin-sm2/-/request-plugin-sm2-2.0.0.tgz","fileCount":14,"integrity":"sha512-8YMtvLbWqnIGNw7YqQXxcGVLSIbZmdv6EzItzEgPtzdDgss6P/Hx+WXTttMmqdHbWjBCNw+8fMLlg+Pe2vhIWA==","signatures":[{"sig":"MEUCIFmfCNblbbKHq6M2jJ+wmGsTBAoRFHlgXg+YXLYAIQ89AiEA8KM0XMR9NrlhdS1JDUwPa5bqDawPjFc2TWcRg1IuIHk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15729},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","actor":{"name":"easefun-ci","type":"user","email":"polyv@163.com"},"email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：SM2 加密插件，用于对请求和响应数据进行国密 SM2 加密和解密处理。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"js-base64":"^3.7.5","sm-crypto":"^0.3.7","@polyv/request-core":"2.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/request-plugin-sm2_2.0.0_1751449739194_0.1466494535418552","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@polyv/request-plugin-sm2","version":"2.1.0","_id":"@polyv/request-plugin-sm2@2.1.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"heeroluo","email":"heeroluo@126.com"},{"name":"easefun-ci","email":"polyv@163.com"}],"dist":{"shasum":"8417f8e0a0a0bf6bbb33fdf438fa249aab12abd9","tarball":"https://registry.npmjs.org/@polyv/request-plugin-sm2/-/request-plugin-sm2-2.1.0.tgz","fileCount":14,"integrity":"sha512-K+MCrjjkz1gagqD9H6jvM2I77MWk2Qx1xm4RfHnjeqeEV/kr11gntXlnRwKGS+RsFVH6d6ehZcSDSWPMHFQdog==","signatures":[{"sig":"MEUCIQCJu52Bk1wv94Q3x3LRAm2wDIkRzL8Hp6XzWrCTEccd5gIgYClNhq7C4qy8KbMBsfo/Oa4Qh7wP0IGP9xF4KF/b2/E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15729},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：SM2 加密插件，用于对请求和响应数据进行国密 SM2 加密和解密处理。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"js-base64":"^3.7.5","sm-crypto":"^0.3.7","@polyv/request-core":"2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-sm2_2.1.0_1755136238539_0.8810107399202103","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@polyv/request-plugin-sm2","version":"2.2.0","_id":"@polyv/request-plugin-sm2@2.2.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"heeroluo","email":"heeroluo@126.com"},{"name":"easefun-ci","email":"polyv@163.com"}],"dist":{"shasum":"a6839b209848be2f6b99058aab6a9cfdf8edb925","tarball":"https://registry.npmjs.org/@polyv/request-plugin-sm2/-/request-plugin-sm2-2.2.0.tgz","fileCount":14,"integrity":"sha512-12xkUQuLCAmtyht2ZSb5b+8Us4rwh9865uUTwP1GctAHbIaoK3XWOkvkVWJKAljBWxSBWAbTzDiuuM5fFpDobQ==","signatures":[{"sig":"MEUCIBv/s9ErPYkvSFyV7XUtMJ0rIVW8eEFDWsYkMPCM6keoAiEA197akM890JV3VLBAbkfMv/0UAnJjDj6mrIawtcDCVHM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15729},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：SM2 加密插件，用于对请求和响应数据进行国密 SM2 加密和解密处理。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"js-base64":"^3.7.5","sm-crypto":"^0.3.7","@polyv/request-core":"2.2.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-sm2_2.2.0_1756948063183_0.39603074818958284","host":"s3://npm-registry-packages-npm-production"}},"2.3.0":{"name":"@polyv/request-plugin-sm2","version":"2.3.0","_id":"@polyv/request-plugin-sm2@2.3.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"heeroluo","email":"heeroluo@126.com"},{"name":"easefun-ci","email":"polyv@163.com"}],"dist":{"shasum":"b49994e62eb98f99d891675dce5a2a46e1c44017","tarball":"https://registry.npmjs.org/@polyv/request-plugin-sm2/-/request-plugin-sm2-2.3.0.tgz","fileCount":14,"integrity":"sha512-+Dy2ycaW60lS1PKVkLyUwfIgy8sL9q3y8pP1w7vLvjyKKnozEE22dIWb0bNW67liZD5U5eBUjxyRY1HLRMClwA==","signatures":[{"sig":"MEUCIAC6yLaCrtn2t5mHESfBWs8FDZAeUcHfMRNgmfsvkqEtAiEA9CL04DCrzR4BlCvV4Jh0ojkYY6rrK4xeCNMqfgo73Uc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15794},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：SM2 加密插件，用于对请求和响应数据进行国密 SM2 加密和解密处理。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"js-base64":"^3.7.5","sm-crypto":"^0.3.7","@polyv/request-core":"2.3.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-sm2_2.3.0_1761040181824_0.3173198436818181","host":"s3://npm-registry-packages-npm-production"}},"2.4.0":{"name":"@polyv/request-plugin-sm2","version":"2.4.0","_id":"@polyv/request-plugin-sm2@2.4.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"heeroluo","email":"heeroluo@126.com"},{"name":"easefun-ci","email":"polyv@163.com"}],"dist":{"shasum":"a9193b9b83ec416e6aa171e40b277aeb43505a19","tarball":"https://registry.npmjs.org/@polyv/request-plugin-sm2/-/request-plugin-sm2-2.4.0.tgz","fileCount":14,"integrity":"sha512-7EWFaYSThh6O7vhxqmfgRYlhACcz8SNr7q6tmvxEEwt5KAvLMouS3GjUSTEozHSvOIwXi0Mtd5ilb8Z3T5nvTw==","signatures":[{"sig":"MEUCIQC1lnmvqhZ4COl5G5MD3MN8pg3lCGuXiPWJsRrYmgj/dgIgR81IAZIIlEprlIv4jqE35AbVJ97aoSU3ebIgCy7QAik=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15794},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：SM2 加密插件，用于对请求和响应数据进行国密 SM2 加密和解密处理。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"js-base64":"^3.7.5","sm-crypto":"^0.3.7","@polyv/request-core":"2.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-sm2_2.4.0_1773197379488_0.862272718642294","host":"s3://npm-registry-packages-npm-production"}},"2.5.0":{"name":"@polyv/request-plugin-sm2","version":"2.5.0","_id":"@polyv/request-plugin-sm2@2.5.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"easefun-ci","email":"polyv@163.com"},{"name":"junyu8893","email":"852711368@qq.com"}],"dist":{"shasum":"364d0cae74f9645e381e6fcc422942d89d8ca3cb","tarball":"https://registry.npmjs.org/@polyv/request-plugin-sm2/-/request-plugin-sm2-2.5.0.tgz","fileCount":14,"integrity":"sha512-+ktzqKJyTv/OkK24S/ZPfwbcjFRZEOUdXn4ZbrMIIngsQ5CF9Xu4I4JhSFsclBhtF3aiAxs0iMZ76Y3YwoZUOw==","signatures":[{"sig":"MEUCIQCtRPqQ5cdWUpSTYw9uxYtt8D6ktzImpqAY46IghkCdOQIgUJsBeGIfhlCydfwOG1hinmTY2CdY3Nr+DjsUnO0Ma0o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15794},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：SM2 加密插件，用于对请求和响应数据进行国密 SM2 加密和解密处理。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"js-base64":"^3.7.5","sm-crypto":"^0.3.7","@polyv/request-core":"2.5.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-sm2_2.5.0_1778721451921_0.47186529581639247","host":"s3://npm-registry-packages-npm-production"}},"2.6.0":{"name":"@polyv/request-plugin-sm2","version":"2.6.0","_id":"@polyv/request-plugin-sm2@2.6.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"easefun-ci","email":"polyv@163.com"},{"name":"junyu8893","email":"852711368@qq.com"}],"dist":{"shasum":"8d141c1a4c390d6645ebce213b27b363c7765be4","tarball":"https://registry.npmjs.org/@polyv/request-plugin-sm2/-/request-plugin-sm2-2.6.0.tgz","fileCount":14,"integrity":"sha512-jzljgsJIHFzb5S80EBcy+yvgjiJ7qXJ39gQlOMupTKEBU8YeAJ+DQO0+ZM3OwZJNxbJ7yeVGE0ppxMPqKdYbDw==","signatures":[{"sig":"MEQCIEQNOJirQnZR0oBfxjVFrSWpIBblhE4FpQX9tPDMxu6uAiBrBfJYhjPhkqFNCERxym+mQTXhfmhQNtaFeuMk1JrXvg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15794},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：SM2 加密插件，用于对请求和响应数据进行国密 SM2 加密和解密处理。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"js-base64":"^3.7.5","sm-crypto":"^0.3.7","@polyv/request-core":"2.6.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-sm2_2.6.0_1780554122493_0.48074065995934245","host":"s3://npm-registry-packages-npm-production"}},"2.7.0":{"name":"@polyv/request-plugin-sm2","version":"2.7.0","_id":"@polyv/request-plugin-sm2@2.7.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"easefun-ci","email":"polyv@163.com"},{"name":"junyu8893","email":"852711368@qq.com"}],"dist":{"shasum":"e187c863aba9437369fddd29a94cfe24928cd56a","tarball":"https://registry.npmjs.org/@polyv/request-plugin-sm2/-/request-plugin-sm2-2.7.0.tgz","fileCount":14,"integrity":"sha512-TREMh2xeG9fnL9UcdAi4TIZdVBH1ikZDf5NpO5TLIYJhC0me/rrSWS9o9eU9vOxj5XdSFJqNxvmIpRDgo0CNWw==","signatures":[{"sig":"MEUCIFIoyucRIXqyzp4Jf5O4GWRT+yWBEcTW1j52FSDdtEwgAiEAraEBeIKR5uyNQ8t99xeS8OZ6E0P0FZfmjxkzsNEnglc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15794},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：SM2 加密插件，用于对请求和响应数据进行国密 SM2 加密和解密处理。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"js-base64":"^3.7.5","sm-crypto":"^0.3.7","@polyv/request-core":"2.7.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-sm2_2.7.0_1780997162226_0.4299038400797377","host":"s3://npm-registry-packages-npm-production"}},"2.7.1":{"name":"@polyv/request-plugin-sm2","version":"2.7.1","_id":"@polyv/request-plugin-sm2@2.7.1","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"easefun-ci","email":"polyv@163.com"},{"name":"junyu8893","email":"852711368@qq.com"}],"dist":{"shasum":"3c7a9289b2045fb1d14dcc3ec64e783742abc029","tarball":"https://registry.npmjs.org/@polyv/request-plugin-sm2/-/request-plugin-sm2-2.7.1.tgz","fileCount":14,"integrity":"sha512-iS/g5Qv6T5anPnpnEyZYLi+OsezomKRo+cXqw+q/+a5SpJ+4vxPP7HdR3lO7MWCUDj9bLj+LQwfyR5c1IOdXxw==","signatures":[{"sig":"MEQCIF4xRfA2RFMiCbEi54ekYY5maI3n+QH86FrTXKS7NGyuAiAxH7o4NdXonkf0II8G0v/OLG2iISonk1mO/H/4uvZdtA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15794},"main":"./index.js","types":"./index.d.ts","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"8.5.0","description":"用途：SM2 加密插件，用于对请求和响应数据进行国密 SM2 加密和解密处理。","directories":{},"_nodeVersion":"16.14.2","dependencies":{"js-base64":"^3.7.5","sm-crypto":"^0.3.7","@polyv/request-core":"2.7.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-sm2_2.7.1_1781000659749_0.8686953626623479","host":"s3://npm-registry-packages-npm-production"}},"2.8.0":{"name":"@polyv/request-plugin-sm2","version":"2.8.0","_id":"@polyv/request-plugin-sm2@2.8.0","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"easefun-ci","email":"polyv@163.com"},{"name":"junyu8893","email":"852711368@qq.com"}],"dist":{"shasum":"7bb54ca2f21039373c4626cd77bd0654a955c8f9","tarball":"https://registry.npmjs.org/@polyv/request-plugin-sm2/-/request-plugin-sm2-2.8.0.tgz","fileCount":14,"integrity":"sha512-JFdLln93EjIH9+KKLzo/6ENTe27/cNR8qgrijajdnyU6SFy+2AKuzLkbGpkVelnX4zRjsT3NqLqj9AsTSKEWJw==","signatures":[{"sig":"MEUCIEu3DlTgy/YMU5F4UiKj3AESWTWewl0i6vkAVTGemsjNAiEAvcHe29Bxk+q7ckprtxu7ruQeap/79OZ7vMnXo6SS40Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16290},"main":"./index.js","type":"module","types":"./index.d.ts","gitHead":"13b8b598b2d8ecb151f2f6c7cf4ecab6671c1965","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"10.8.2","description":"用途：SM2 加密插件，用于对请求和响应数据进行国密 SM2 加密和解密处理。","directories":{},"miniprogram":"./","_nodeVersion":"20.20.2","dependencies":{"js-base64":"^3.7.5","sm-crypto":"^0.3.7","@polyv/request-core":"2.8.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/request-plugin-sm2_2.8.0_1783071940285_0.18803514171738","host":"s3://npm-registry-packages-npm-production"}},"2.8.1":{"_id":"@polyv/request-plugin-sm2@2.8.1","dist":{"shasum":"3230095faf78e24044a8bb4c722fba2a3e14d550","tarball":"https://registry.npmjs.org/@polyv/request-plugin-sm2/-/request-plugin-sm2-2.8.1.tgz","fileCount":14,"integrity":"sha512-2+ypwoeBBK0ilFMtkdaX9S/jqIKLv5OO9vuaz/jzkt01hiDlO8Z4BxWKwq+4RiKmh20EWNcfS7PKjfSr9UBN3w==","signatures":[{"sig":"MEYCIQDN1CQy7dqpoO0LKxWsTDHVSHv8y+oqnM070v/YW58IZQIhAMAr1ck7fICIsMf52pNAKR6lplWIz9zs2du8WoRF7LpH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDIUtkpID22aloeQ/WGWXg41Fr6iW7SZ18HV5bOliDVuQIgKiMf1Q3xXzbVts0zx+ZiMwjdcHmBzItYqnNxF0KCDmw="}],"unpackedSize":16290},"main":"./index.js","name":"@polyv/request-plugin-sm2","type":"module","types":"./index.d.ts","gitHead":"7d3597a4b7101140a3061be5129d97ede5f055d4","version":"2.8.1","_npmUser":{"name":"easefun-ci","email":"polyv@163.com"},"_npmVersion":"10.8.2","description":"用途：SM2 加密插件，用于对请求和响应数据进行国密 SM2 加密和解密处理。","directories":{},"maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"easefun-ci","email":"polyv@163.com"},{"name":"junyu8893","email":"852711368@qq.com"}],"miniprogram":"./","_nodeVersion":"20.20.2","dependencies":{"js-base64":"^3.7.5","sm-crypto":"^0.3.7","@polyv/request-core":"2.8.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/request-plugin-sm2_2.8.1_1789717001369_0.7326455251085899"}}},"time":{"created":"2025-07-02T09:48:59.116Z","modified":"2026-09-18T07:36:41.729Z","2.0.0":"2025-07-02T09:48:59.393Z","2.1.0":"2025-08-14T01:50:38.768Z","2.2.0":"2025-09-04T01:07:43.370Z","2.3.0":"2025-10-21T09:49:42.021Z","2.4.0":"2026-03-11T02:49:39.650Z","2.5.0":"2026-05-14T01:17:32.085Z","2.6.0":"2026-06-04T06:22:02.642Z","2.7.0":"2026-06-09T09:26:02.363Z","2.7.1":"2026-06-09T10:24:19.879Z","2.8.0":"2026-07-03T09:45:40.427Z","2.8.1":"2026-09-18T07:36:41.452Z"},"description":"用途：SM2 加密插件，用于对请求和响应数据进行国密 SM2 加密和解密处理。","maintainers":[{"name":"easefun","email":"polyv@qq.com"},{"name":"easefun-ci","email":"polyv@163.com"},{"name":"junyu8893","email":"852711368@qq.com"}],"readme":"# SM2RequestPlugin\n\n用途：SM2 加密插件，用于对请求和响应数据进行国密 SM2 加密和解密处理。\n\n## 实例化参数\n\n| 参数名                       | 用途                              | 类型       | 默认值 |\n| ---------------------------- | --------------------------------- | ---------- | ------ |\n| `platformPublicKey`          | 平台公钥（接口提交参数加密用）    | `string`   | -      |\n| `userPrivateKey`             | 用户私钥（接口响应内容解密用）    | `string`   | -      |\n| `includeIgnoreEncryptFields` | 额外的忽略加密字段                | `string[]` | -      |\n| `useSM2`                     | 是否使用 SM2 加密                 | `boolean`  | `true` |\n| `encryptPostSM2`             | 是否对 POST 请求主体进行 SM2 加密 | `boolean`  | `true` |\n\n## 请求选项\n\n| 参数名           | 用途                              | 类型      | 默认值 |\n| ---------------- | --------------------------------- | --------- | ------ |\n| `useSM2`         | 是否使用 SM2 加密                 | `boolean` | `true` |\n| `encryptPostSM2` | 是否对 POST 请求主体进行 SM2 加密 | `boolean` | `true` |\n\n## 使用方式\n\n```js\nimport { PolyvRequest } from '@polyv/request-core';\nimport { SM2RequestPlugin } from '@polyv/request-plugin-sm2';\n\n// 基础用法：提供平台公钥和用户私钥\nconst requester = new PolyvRequest({\n  requestPlugins: [\n    new SM2RequestPlugin({\n      platformPublicKey: 'yourPlatformPublicKey',\n      userPrivateKey: 'yourUserPrivateKey',\n    }),\n  ],\n});\n\n// 配置额外的忽略加密字段\nconst requester = new PolyvRequest({\n  requestPlugins: [\n    new SM2RequestPlugin({\n      platformPublicKey: 'yourPlatformPublicKey',\n      userPrivateKey: 'yourUserPrivateKey',\n      includeIgnoreEncryptFields: ['customField1', 'customField2'],\n    }),\n  ],\n});\n// 此时请求时，被忽略的字段不会加入到加密内容中\nrequester.post(\n  '/api/data',\n  {\n    customField1: 'abc',\n  },\n  {\n    params: {\n      customField2: 'def',\n    },\n  },\n);\n\n// 禁用 POST 请求主体加密\nconst requester = new PolyvRequest({\n  requestPlugins: [\n    new SM2RequestPlugin({\n      platformPublicKey: 'yourPlatformPublicKey',\n      userPrivateKey: 'yourUserPrivateKey',\n      encryptPostSM2: false,\n    }),\n  ],\n});\n\n// 在某个请求中禁用 SM2 加密\nrequester.get(\n  '/api/data',\n  {},\n  {\n    useSM2: false,\n  },\n);\n\n// 在某个请求中禁用 POST 请求主体加密\nrequester.post(\n  '/api/data',\n  { name: 'test' },\n  {\n    encryptPostSM2: false,\n  },\n);\n```\n","readmeFilename":"README.md"}