class PKCS7Encoder extends Object
| Modifier and Type | Field and Description |
|---|---|
private static int |
BLOCK_SIZE |
| Constructor and Description |
|---|
PKCS7Encoder() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static char |
chr(int a)
将数字转化成ASCII码对应的字符,用于对明文进行补码
|
(package private) static byte[] |
decode(byte[] decrypted)
删除解密后明文的补位字符
|
(package private) static byte[] |
encode(int count)
获得对明文进行补位填充的字节.
|
private static final int BLOCK_SIZE
static byte[] encode(int count)
count - 需要进行填充补位操作的明文字节个数static byte[] decode(byte[] decrypted)
decrypted - 解密后的明文static char chr(int a)
a - 需要转化的数字Copyright © 2024. All rights reserved.