public class Base32 extends Object
Constructor and Description |
---|
Base32() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(String base32)
解码
|
static byte[] |
decodeHex(String base32)
解码
|
static String |
decodeStr(String source)
base32解码
|
static String |
decodeStr(String source,
Charset charset)
base32解码
|
static String |
decodeStrHex(String source)
base32解码
|
static String |
decodeStrHex(String source,
Charset charset)
base32解码
|
static String |
encode(byte[] bytes)
编码
|
static String |
encode(String source)
base32编码
|
static String |
encode(String source,
Charset charset)
base32编码
|
static String |
encodeHex(byte[] bytes)
编码
|
static String |
encodeHex(String source)
base32编码(Hex模式)
|
static String |
encodeHex(String source,
Charset charset)
base32编码(Hex模式)
|
public static String encode(byte[] bytes)
bytes
- 数据public static String encode(String source)
source
- 被编码的base32字符串public static String encode(String source, Charset charset)
source
- 被编码的base32字符串charset
- 字符集public static String encodeHex(byte[] bytes)
bytes
- 数据(Hex模式)public static String encodeHex(String source)
source
- 被编码的base32字符串public static String encodeHex(String source, Charset charset)
source
- 被编码的base32字符串charset
- 字符集public static byte[] decode(String base32)
base32
- base32编码public static String decodeStr(String source)
source
- 被解码的base32字符串public static String decodeStr(String source, Charset charset)
source
- 被解码的base32字符串charset
- 字符集public static byte[] decodeHex(String base32)
base32
- base32编码public static String decodeStrHex(String source)
source
- 被解码的base32字符串Copyright © 2024. All rights reserved.