public class Base32 extends Object
Modifier and Type | Method | Description |
---|---|---|
static byte[] |
decode(String s) |
Case-insensitive.
|
static String |
decodeToString(String s) |
Decodes data from Base32 notation and
returns it as a string.
|
static String |
encode(byte[] source) |
Returns lower case.
|
static String |
encode(String source) |
Returns lower case.
|
static void |
main(String[] args) |
public static void main(String[] args)
public static String encode(String source)
source
- if null will return ""public static String encode(byte[] source)
source
- The data to convert non-nullpublic static String decodeToString(String s)
s
- the string to decode, if null returns nullpublic static byte[] decode(String s)
s
- non-null