View Source WeChat.Pay.Crypto (wechat v0.16.0)

用于支付加密相关

Summary

Functions

Link to this function

decrypt_aes_256_gcm(api_secret_key, ciphertext, associated_data, iv)

View Source
Link to this function

decrypt_secret_data(cipher_text, private_key)

View Source

解密敏感信息 - 官方文档

Link to this function

encrypt_secret_data(data, public_key)

View Source

加密敏感信息 - 官方文档

Link to this function

sign(env, timestamp, nonce_str, private_key)

View Source

签名 - 官方文档

@spec v2_sign(data :: map(), key :: binary()) :: signature :: binary()

签名(v2) - 官方文档

Link to this function

v2_sign(plain_text, method, key)

View Source
@spec v2_sign(data :: binary() | map(), method :: binary(), key :: binary()) ::
  signature :: binary()
Link to this function

v2_verify(params, method, key)

View Source
Link to this function

verify(signature, timestamp, nonce, body, public_key)

View Source

验签 - 官方文档