java.lang.Object
net.i2p.data.Base32
Encodes and decodes to and from Base32 notation. Ref: RFC 3548
Don't bother with '=' padding characters on encode or accept them on decode (i.e. don't require 5-character groups). No whitespace allowed.
Decode accepts upper or lower case.
Method Details
main
Run the Base32 command-line utility.- Parameters:
args- the subcommand and its operands, as documented by the usage message printed when args is empty
encode
encode
Returns lower case. Does not add trailing '='.- Parameters:
source- The data to convert non-null- Returns:
- the Base32-encoded string
decodeToString
decode
Case-insensitive. Does not allow trailing '='.- Parameters:
s- non-null- Returns:
- decoded data, null on error