MichaelCombs28 / elm-base85 / Base85

Library for base85 encoding and decoding of strings. Uses 5 ascii characters to represent 4 bytes of binary data.

Wikipedia page for more information.

Functions

encode : String -> String

Encodes a string into ascii85 (base85)

encode "easy" == "<~ARTY*~>"

decode : String -> Result String String

Decodes a string of ascii characters into the original chars. Can only be codepoints between 33 - 117 as well as 'z' for compression. String to be decoded must include the two delimiters at the start and end of the string

decode "<~ARTY*~>" == "easy"