fix:
update:更新主界面样式布局
This commit is contained in:
2022-08-19 10:17:45 +08:00
parent 99a8038e41
commit 26075a1486
11 changed files with 316 additions and 276 deletions

View File

@@ -30,19 +30,22 @@ public class CXAESUtil {
/**
* 加密
*
* @param key
* 密钥
* @param src
* 加密文本
* @param key 密钥
* @param src 加密文本
* @return
* @throws Exception
*/
public static String encrypt(String key, String src) throws Exception {
public static String encrypt(String key, String src) {
// /src = Base64.encodeToString(src.getBytes(), Base64.DEFAULT);
byte[] rawKey = toMakekey(key, keyLenght, defaultV).getBytes();// key.getBytes();
byte[] result = encrypt(rawKey, src.getBytes("utf-8"));
// result = Base64.encode(result, Base64.DEFAULT);
return toHex(result);
try {
byte[] result = encrypt(rawKey, src.getBytes("utf-8"));
// result = Base64.encode(result, Base64.DEFAULT);
return toHex(result);
} catch (Exception e) {
e.printStackTrace();
return "";
}
}
/**