This commit is contained in:
sxu 2025-02-02 22:36:27 +08:00
parent ca335245bc
commit 4489566fc9
3 changed files with 4 additions and 139 deletions

View File

@ -59,10 +59,13 @@ public class AesEncryptUtil {
public static void main(String[] args) {
System.out.println(aesEncrypt("Bonus$2026"));
System.out.println(aesDecode("PCAGz8j5ByU2AzoT6vtlLA=="));
System.out.println();
System.out.println(aesEncrypt("Bonus$2027"));
System.out.println(aesDecode("MF1Nui79h/OHRGoUx1jhcg=="));
System.out.println();
System.out.println(aesEncrypt("18110922397"));
System.out.println(aesDecode("poEWO1yyC/EaUR9vmrrNSA=="));
System.out.println(aesDecode("poEWO1yyC/EaUR9vmrrNSA=="));
}
}

View File

@ -1,68 +0,0 @@
//package net.xnzn.utils;
//
//import io.swagger.annotations.ApiModelProperty;
//
//import javax.validation.Valid;
//
//public class LeRequest<T> {
// @ApiModelProperty("版本控制")
// private String version;
// @ApiModelProperty("随机字符串")
// private String nonceStr;
// @ApiModelProperty("时间戳")
// private String timestamp;
// @ApiModelProperty("签名类型")
// private String signType;
// @ApiModelProperty("业务参数")
// private @Valid T content;
// @ApiModelProperty("签名")
// private String sign;
//
// public String getVersion() {
// return this.version;
// }
//
// public String getNonceStr() {
// return this.nonceStr;
// }
//
// public String getTimestamp() {
// return this.timestamp;
// }
//
// public String getSignType() {
// return this.signType;
// }
//
// public T getContent() {
// return this.content;
// }
//
// public String getSign() {
// return this.sign;
// }
//
// public void setVersion(final String version) {
// this.version = version;
// }
//
// public void setNonceStr(final String nonceStr) {
// this.nonceStr = nonceStr;
// }
//
// public void setTimestamp(final String timestamp) {
// this.timestamp = timestamp;
// }
//
// public void setSignType(final String signType) {
// this.signType = signType;
// }
//
// public void setContent(final T content) {
// this.content = content;
// }
//
// public void setSign(final String sign) {
// this.sign = sign;
// }
//}

View File

@ -1,70 +0,0 @@
//package net.xnzn.utils;
//
//import io.swagger.annotations.ApiModel;
//import net.xnzn.framework.config.response.ResponseWrapper;
//
//@ApiModel(
// description = "响应数据"
//)
//public class LeResponse<T> extends ResponseWrapper<T> {
// public static <T> LeResponse<T> succ() {
// return (LeResponse<T>) restResult(RetCodeEnum.SUCC.getKey(), RetCodeEnum.SUCC.getDesc(), (Object)null);
// }
//
// public static <T> LeResponse<T> succ(T returnData) {
// return restResult(RetCodeEnum.SUCC.getKey(), RetCodeEnum.SUCC.getDesc(), returnData);
// }
//
// public static <T> LeResponse<T> succ(String msg, T returnData) {
// return restResult(RetCodeEnum.SUCC.getKey(), msg, returnData);
// }
//
// public static <T> LeResponse<T> succ(RetCodeEnum retCodeEnum) {
// return (LeResponse<T>) restResult(retCodeEnum.getKey(), retCodeEnum.getDesc(), (Object)null);
// }
//
// public static <T> LeResponse<T> succ(Integer code, String msg) {
// return (LeResponse<T>) restResult(code, msg, (Object)null);
// }
//
// public static <T> LeResponse<T> fail() {
// return (LeResponse<T>) restResult(RetCodeEnum.FAIL.getKey(), RetCodeEnum.FAIL.getDesc(), (Object)null);
// }
//
// public static <T> LeResponse<T> fail(String errorMsg) {
// return (LeResponse<T>) restResult(RetCodeEnum.FAIL.getKey(), errorMsg, (Object)null);
// }
//
// public static <T> LeResponse<T> fail(RetCodeEnum retCodeEnum, String errorMsg) {
// return (LeResponse<T>) restResult(retCodeEnum.getKey(), errorMsg, (Object)null);
// }
//
// public static <T> LeResponse<T> fail(Integer code, String errorMsg) {
// return (LeResponse<T>) restResult(code, errorMsg, (Object)null);
// }
//
// public static <T> LeResponse<T> fail(RetCodeEnum retCodeEnum, T returnData) {
// return restResult(retCodeEnum.getKey(), retCodeEnum.getDesc(), returnData);
// }
//
// public static <T> LeResponse<T> fail(Integer code, T returnData) {
// return restResult(code, (String)null, returnData);
// }
//
// public static <T> LeResponse<T> fail(RetCodeEnum retCodeEnum, String errorMsg, T returnData) {
// return restResult(retCodeEnum.getKey(), errorMsg, returnData);
// }
//
// public static <T> LeResponse<T> fail(Integer code, String errorMsg, T returnData) {
// return restResult(code, errorMsg, returnData);
// }
//
// private static <T> LeResponse<T> restResult(Integer code, String msg, T returnData) {
// LeResponse<T> apiResult = new LeResponse();
// apiResult.setCode(code);
// apiResult.setMsg(msg);
// apiResult.setData(returnData);
// return apiResult;
// }
//
//}