From a634353fa88256dfccfacc86fa0aa654a882fc45 Mon Sep 17 00:00:00 2001 From: hellohao <923453645@qq.com> Date: Fri, 28 Feb 2025 09:28:42 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=E8=B0=83=E6=95=B4=E9=83=A8=E5=88=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/hellohao/utils/Base64Encryption.java | 51 ------------------- .../java/cn/hellohao/utils/DateUtils.java | 23 --------- 2 files changed, 74 deletions(-) delete mode 100644 src/main/java/cn/hellohao/utils/Base64Encryption.java delete mode 100644 src/main/java/cn/hellohao/utils/DateUtils.java diff --git a/src/main/java/cn/hellohao/utils/Base64Encryption.java b/src/main/java/cn/hellohao/utils/Base64Encryption.java deleted file mode 100644 index 5fe8a45..0000000 --- a/src/main/java/cn/hellohao/utils/Base64Encryption.java +++ /dev/null @@ -1,51 +0,0 @@ -//package cn.hellohao.utils; -// -//import java.io.IOException; -//import java.util.Base64; -// -///** -// * Created by Hellohao on 2019-08-27. -// */ -//public class Base64Encryption { -//// public static void toBaseCode(String str) { -//// String data = encryptBASE64(str.getBytes()); -//// } -//// public static String decryptBASE64(String key) { -//// byte[] b =null; -//// try { -//// b = (new BASE64Decoder()).decodeBuffer(key); -//// } catch (IOException e) { -//// e.printStackTrace(); -//// } -//// return new String(b); -//// } -//// public static String encryptBASE64(byte[] key) { -//// String string = "SGVsbG9oYW8K"; -//// return (new BASE64Encoder()).encodeBuffer(key).replaceAll("\r|\n", ""); -//// } -// -// -// public static void toBaseCode(String str) { -// String data = encryptBASE64(str.getBytes()); -// } -// -// public static String decryptBASE64(String key) { -// byte[] b = null; -// try { -// b = Base64.getDecoder().decode(key); -// } catch (IllegalArgumentException e) { -// e.printStackTrace(); -// } -// return new String(b); -// } -// -// public static String encryptBASE64(byte[] key) { -// String string = "SGVsbG9oYW8K"; -// return Base64.getEncoder().encodeToString(key); -// } -// -// -// -// -// -//} \ No newline at end of file diff --git a/src/main/java/cn/hellohao/utils/DateUtils.java b/src/main/java/cn/hellohao/utils/DateUtils.java deleted file mode 100644 index eac9a76..0000000 --- a/src/main/java/cn/hellohao/utils/DateUtils.java +++ /dev/null @@ -1,23 +0,0 @@ -package cn.hellohao.utils; - -import java.text.SimpleDateFormat; -import java.util.Calendar; -import java.util.Date; - -/** - * @author Hellohao - * @version 1.0 - * @date 2019/9/20 16:27 - */ -public class DateUtils { - public static String plusDay(int num){ - Date d = new Date(); - SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - String currdate = format.format(d); - Calendar ca = Calendar.getInstance(); - ca.add(Calendar.DATE, num); - d = ca.getTime(); - String enddate = format.format(d); - return enddate; - } -}