Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(String in)
Decodes the given base-32 string into bytes.
|
static String |
encode(byte[] in)
Encodes the given bytes into a base-32 string.
|
static String |
encode(byte[] in,
int off,
int len)
Encodes the given bytes into a base-32 string.
|
static String |
encodeWithDashes(byte[] in)
Encodes the given bytes into a base-32 string, inserting dashes after
every 6 characters of output.
|
static String |
encodeWithDashes(byte[] in,
int off,
int len)
Encodes the given bytes into a base-32 string, inserting dashes after
every 6 characters of output.
|
public static String encode(byte[] in)
in
- the bytes to encode.in
is null.public static String encode(byte[] in, int off, int len)
in
- an array containing the bytes to encode.off
- the start offset of the data within in
.len
- the number of bytes to encode.public static String encodeWithDashes(byte[] in)
in
- the bytes to encode.in
is null.public static String encodeWithDashes(byte[] in, int off, int len)
in
- the bytes to encode.off
- the start offset of the data within in
.len
- the number of bytes to encode.public static byte[] decode(String in)
in
- the base-32 string to decode.in
is null.Copyright © 2024 Guardtime. All rights reserved.