public interface AESCrypto
| 限定符和类型 | 方法和说明 |
|---|---|
default byte[] |
decode(byte[] content)
解密
|
default byte[] |
decode(String hexContent)
解密
|
default byte[] |
decodeBase64(String base64Content)
解密
|
default String |
decodeBase64AsString(String base64Content)
解密
|
default String |
decodeHex(String content)
解密
|
default byte[] |
decodeUrlBase64(String base64Content)
解密
|
default String |
decodeUrlBase64AsString(String base64Content)
解密
|
default boolean |
enable()
是否启用
|
default byte[] |
encode(byte[] content)
加密
|
default String |
encodeBase64(byte[] content)
加密
|
default String |
encodeBase64(String content)
加密
|
default String |
encodeHex(byte[] content)
加密
|
default String |
encodeHex(String content)
加密
|
default String |
encodeUrlBase64(byte[] content)
加密
|
default String |
encodeUrlBase64(String content)
加密
|
default String |
getAlgorithm()
加密算法
|
default String |
getCipherAlgorithm()
加密解密算法/加密模式/填充方式
|
Cipher |
getDecodeCipher(byte[] encryptedData)
获取密码处理实例
|
Cipher |
getEncodeCipher()
获取密码处理实例
|
String |
getSecretKey()
密钥
|
default String getAlgorithm()
default String getCipherAlgorithm()
String getSecretKey()
default byte[] encode(byte[] content)
default byte[] decode(byte[] content)
default String encodeHex(byte[] content)
default String encodeBase64(byte[] content)
default String encodeUrlBase64(byte[] content)
default byte[] decode(String hexContent)
default byte[] decodeBase64(String base64Content)
default byte[] decodeUrlBase64(String base64Content)
Cipher getEncodeCipher()
Cipher getDecodeCipher(byte[] encryptedData)
encryptedData - default boolean enable()
Copyright © 2025. All rights reserved.