类 AesUtil

java.lang.Object
com.ijpay.core.kit.AesUtil

public class AesUtil extends Object

IJPay 让支付触手可及,封装了微信支付、支付宝支付、银联支付常用的支付方式以及各种常用的接口。

不依赖任何第三方 mvc 框架,仅仅作为工具使用简单快速完成支付模块的开发,可轻松嵌入到任何系统里。

IJPay 交流群: 723992875、864988890

Node.js 版: https://gitee.com/javen205/TNWX

工具类 AesUtil

作者:
微信
  • 构造器详细资料

    • AesUtil

      public AesUtil(byte[] key)
      参数:
      key - APIv3 密钥
  • 方法详细资料

    • decryptToString

      public String decryptToString(byte[] associatedData, byte[] nonce, String cipherText) throws GeneralSecurityException
      证书和回调报文解密
      参数:
      associatedData - associated_data
      nonce - nonce
      cipherText - ciphertext
      返回:
      {String} 平台证书明文
      抛出:
      GeneralSecurityException - 异常