Package com.infilos.utils
Class Encoder
- java.lang.Object
-
- com.infilos.utils.Encoder
-
public final class Encoder extends Object
- Author:
- zhiguang.zhang on 2020-12-09.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
asBase64(byte[] plainBytes)
static String
asBase64(String str)
static String
decimalToNumeric(long dec, int seed)
2 <= seed <= 62static boolean
isBase64(String b64)
static String
md5(String str)
static long
numericToDecimal(String num, int seed)
2 <= seed <= 62static byte[]
ofBase64(byte[] b64Bytes)
static String
ofBase64(String b64)
-
-
-
Method Detail
-
asBase64
public static byte[] asBase64(byte[] plainBytes)
-
ofBase64
public static byte[] ofBase64(byte[] b64Bytes)
-
isBase64
public static boolean isBase64(String b64)
-
decimalToNumeric
public static String decimalToNumeric(long dec, int seed)
2 <= seed <= 62
-
numericToDecimal
public static long numericToDecimal(String num, int seed)
2 <= seed <= 62
-
-