Package top.focess.util
Class Base64
- java.lang.Object
-
- top.focess.util.Base64
-
public class Base64 extends Object
This is a Base64 util class.
-
-
Constructor Summary
Constructors Constructor Description Base64()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]decodeBase64(byte[] value)Used to decode the data with base64static byte[]encodeBase64(byte[] bytes)Used to encode the data with base64
-
-
-
Method Detail
-
encodeBase64
@NotNull @Contract("_ -> new") public static byte[] encodeBase64(byte[] bytes)Used to encode the data with base64- Parameters:
bytes- the data need to be encoded- Returns:
- the encoded data with base64
-
decodeBase64
public static byte[] decodeBase64(byte[] value)
Used to decode the data with base64- Parameters:
value- the data need to be decoded- Returns:
- the decoded data with base64
-
-