类 WxPKCS7Encoder

java.lang.Object
com.ishop.mobile.util.WxPKCS7Encoder

public class WxPKCS7Encoder extends Object
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static char
    chr(int a)
    将数字转化成ASCII码对应的字符,用于对明文进行补码
    static byte[]
    decode(byte[] decrypted)
    删除解密后明文的补位字符
    static byte[]
    encode(int count)
    获得对明文进行补位填充的字节.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • WxPKCS7Encoder

      public WxPKCS7Encoder()
  • 方法详细资料

    • encode

      public static byte[] encode(int count)
      获得对明文进行补位填充的字节.
      参数:
      count - 需要进行填充补位操作的明文字节个数
      返回:
      补齐用的字节数组
    • decode

      public static byte[] decode(byte[] decrypted)
      删除解密后明文的补位字符
      参数:
      decrypted - 解密后的明文
      返回:
      删除补位字符后的明文
    • chr

      public static char chr(int a)
      将数字转化成ASCII码对应的字符,用于对明文进行补码
      参数:
      a - 需要转化的数字
      返回:
      转化得到的字符