Base32

class Base32

Base32 encode / decode functions

Functions

Link copied to clipboard
open fun decode(string: String): Array<Byte>
Decode a Base32 input with the default alphabet (ALPHABET_RFC4648)
Link copied to clipboard
open fun decodeWithAlphabet(string: String, alphabet: String): Array<Byte>
Decode a Base32 input with the given alphabet
Link copied to clipboard
open fun encode(data: Array<Byte>): String
Encode an input to Base32 with the default alphabet (ALPHABET_RFC4648)
Link copied to clipboard
open fun encodeWithAlphabet(data: Array<Byte>, alphabet: String): String
Encode an input to Base32 with the given alphabet