public static class CodecUtils.AESCodecHelper extends CodecUtils.CodecHelper
CIPHER_ALGORITHM, KEY_ALGORITHM, KEY_SIZE
Constructor and Description |
---|
AESCodecHelper(int keySize,
int iterationCount) |
Modifier and Type | Method and Description |
---|---|
Key |
toKey(byte[] key)
转换密钥
|
decrypt, decrypt, encrypt, encrypt, getCipherInstance, initKey, initKeyToString
public Key toKey(byte[] key) throws Exception
CodecUtils.CodecHelper
toKey
in class CodecUtils.CodecHelper
key
- 二进制密钥Exception
- if an error occurs.Copyright © 2022. All rights reserved.