public class AESTools extends Object
| Constructor and Description |
|---|
AESTools() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decryptData(byte[] key,
byte[] data)
AES解密
方法说明: decryptData 输入参数说明: @param key @param data @return @throws NoSuchAlgorithmException @throws NoSuchPaddingException @throws InvalidKeyException @throws IllegalBlockSizeException @throws BadPaddingException 输出参数说明: byte[] |
static byte[] |
encryptData(byte[] key,
byte[] data)
AES加密
方法说明: encryptData 输入参数说明: @param key @param data @return @throws Exception 输出参数说明: byte[] |
public static byte[] encryptData(byte[] key,
byte[] data)
throws NoSuchAlgorithmException,
NoSuchPaddingException,
InvalidKeyException,
IllegalBlockSizeException,
BadPaddingException
public static byte[] decryptData(byte[] key,
byte[] data)
throws NoSuchAlgorithmException,
NoSuchPaddingException,
InvalidKeyException,
IllegalBlockSizeException,
BadPaddingException
Copyright © 2018. All rights reserved.