module BaseX::Base32

Extended Modules

Defined in:

base_x/base.cr

Constant Summary

DEFAULT = "0123456789ABCDEFGHJKMNPQRSTVWXYZ"
Z_BASE = "ybndrfg8ejkmcpqxot1uwisza345h769"

Instance Method Summary

Instance Method Detail

def decode(str : String, alphabet = DEFAULT) : Bytes #

[View source]
def decode_bytes(str : String, alphabet = DEFAULT) : Bytes #

[View source]
def decode_int(str : String, alphabet = DEFAULT) : BigInt #

[View source]
def encode(bytes : Bytes, alphabet = DEFAULT, leading_zeroes = true) : String #

[View source]
def encode(int : Number, alphabet = DEFAULT) : String #

[View source]