From af0ff46fba4ea44494543f57ee6671af3f549649 Mon Sep 17 00:00:00 2001 From: Parker Date: Fri, 8 Jan 2021 16:51:38 +0800 Subject: [PATCH] =?UTF-8?q?Base64=E5=B7=A5=E5=85=B7=E7=B1=BB=E4=BC=98?= =?UTF-8?q?=E5=8C=96Jwt=E5=B7=A5=E5=85=B7=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../opsli/core/utils/Base64ConvertUtil.java | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 opsli-base-support/opsli-core/src/main/java/org/opsli/core/utils/Base64ConvertUtil.java diff --git a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/utils/Base64ConvertUtil.java b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/utils/Base64ConvertUtil.java deleted file mode 100644 index 3a5e277..0000000 --- a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/utils/Base64ConvertUtil.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.opsli.core.utils; - -import java.io.UnsupportedEncodingException; -import java.nio.charset.StandardCharsets; -import java.util.Base64; - -/** - * Base64工具 - * @author 孙志强 - * @date 2018/11/05 23:10 - */ -public final class Base64ConvertUtil { - /** - * 加密 - * @param str - * @return java.lang.String - */ - public static String encode(String str) throws UnsupportedEncodingException { - byte[] encodeBytes = Base64.getEncoder().encode(str.getBytes(StandardCharsets.UTF_8)); - return new String(encodeBytes); - } - - /** - * 解密 - * @param str - * @return java.lang.String - */ - public static String decode(String str) throws UnsupportedEncodingException { - byte[] decodeBytes = Base64.getDecoder().decode(str.getBytes(StandardCharsets.UTF_8)); - return new String(decodeBytes); - } - - // ============== - private Base64ConvertUtil(){} -}