类 PKCS7Encoder

java.lang.Object
net.jlxxw.wechat.event.util.PKCS7Encoder

public class PKCS7Encoder extends Object
提供基于PKCS7算法的加解密接口.
作者:
lcy
  • 构造器详细资料

    • PKCS7Encoder

      public PKCS7Encoder()
  • 方法详细资料

    • encode

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

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