public class base32 extends Object
Modifier and Type | Class and Description |
---|---|
static class |
base32.Alphabet |
Constructor and Description |
---|
base32(String alphabet,
boolean padding,
boolean lowercase)
Creates an object that can be used to do base32 conversions.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
fromString(String str)
Convert a base32-encoded String to binary data
|
String |
toString(byte[] b)
Convert binary data to a base32-encoded String
|
public base32(String alphabet, boolean padding, boolean lowercase)
alphabet
- Which alphabet should be usedpadding
- Whether padding should be usedlowercase
- Whether lowercase characters should be used. default parameters (The standard
base32 alphabet, no padding, uppercase)public String toString(byte[] b)
b
- An array containing binary datapublic byte[] fromString(String str)
str
- A String containing the encoded dataCopyright © 2021 dnsjava.org. All rights reserved.