Base32

This library lets you encode and decode in either RFC4648 Base32 or in Crockford Base32.

type Alphabet = {#RFC4648 : { padding : Bool }; #Crockford}

RFC4648 Base32 or Crockford Base32

public func encode(alphabet : Alphabet, data : [Nat8]) : Text

encode the bytes

public func decode(alphabet : Alphabet, data : Text) : ?[Nat8]

decode the text