public class Aes256 extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
AESKeyLength |
static boolean |
initialized |
static int |
IVLength |
| 构造器和说明 |
|---|
Aes256() |
public static boolean initialized
public static final int AESKeyLength
public static final int IVLength
public static byte[] crypt(byte[] bytes,
byte[] key,
boolean bEncrypt)
public static byte[] encrypt(byte[] plainBytes,
byte[] key)
plainBytes - 要被加密的字符串key - 加/解密要用的长度为32的字节数组(256位)密钥public static byte[] decrypt(byte[] cipherBytes,
byte[] key)
cipherBytes - 要被解密的字节数组key - 加/解密要用的长度为32的字节数组(256位)密钥public static void initialize()
public static void main(String[] args)
Copyright © 2021. All rights reserved.