public class PKCS7Encoder extends Object
| 构造器和说明 |
|---|
PKCS7Encoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
static char |
chr(int a)
将数字转化成ASCII码对应的字符,用于对明文进行补码
|
static byte[] |
decode(byte[] decrypted)
删除解密后明文的补位字符
|
static byte[] |
encode(int count)
获得对明文进行补位填充的字节.
|
public static byte[] encode(int count)
count - 需要进行填充补位操作的明文字节个数public static byte[] decode(byte[] decrypted)
decrypted - 解密后的明文public static char chr(int a)
a - 需要转化的数字Copyright © 2017. All rights reserved.