1.0.0 • Published 9 months ago

tencentcloud-faceid-crypto-nodejs v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

faceid-api-crypto-nodejs

faceid产品中所有接口的出入参加密解密工具。

用法

  1. 初始化
init(publicKey,alg,keyExpire)
  1. 仅入参需要加密
encrypt(req,fields)
  1. 仅出参需要加密
req, plaintextKey = encrypt(req,[])
rsp = send(req)
decrypt(rsp,plaintextKey)
  1. 出入参都需要加密
req, plaintextKey = encrypt(req,fields)
rsp = send(req)
decrypt(rsp,plaintextKey)

更详细的用法,详见example