- bropen.toolkit.utils.security.GibberishAES
-
-
Methods Summary
Methods
Type |
Name and description |
static String |
dec(String cipherText, String password) 解密 |
static String |
enc(String plainText, String password) 加密 |
-
Inherited Methods Summary
Inherited Methods
Methods inherited from class |
Name |
class Object |
Object#wait(long), Object#wait(long, int), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |
-
-
Method Detail
-
public static String dec(String cipherText, String password)
解密
- throws:
- Exception
- Parameters:
cipherText
- 加密后的字符串(Base64编码过,长度应该是4的倍数,否则自动补后缀“=”)password
- 密钥:不能超过16位
- Returns:
- 加密前的字符串
-
public static String enc(String plainText, String password)
加密
- throws:
- Exception
- Parameters:
plainText
- 加密前的字符串password
- 密钥:不能超过16位
- Returns:
- 加密并且用用Base64编码的字符串
- Summary:
- Nested
- Field
- Constructor
- Method
- | Detail:
- Field
- Constructor
- Method
BROPEN Documentation, 2015-08-08 15:56