MultiBase

RFC4648 Multibase encoder/decoder Initially Created by CJS on 2018/7/12.

Types

Link copied to clipboard

Multibase encoding identifier. Each multibase-encoded string is identified by a prefix, followed by data composed of alphabet characters. The prefix is also part of the alphabet. See also RFC4648.

Functions

Link copied to clipboard
fun decode(data: String): ByteArray?

Decodes the given multibase data into a ByteArray. This method throws Exceptions for strings that are not valid multibase encodings.

Link copied to clipboard

Encodes the given data into the specified base.