newlandsvalley / elm-binary-base64 / BinaryBase64

Library for encoding Binary to Base64 and vice-versa,

Definition

Data Types


type alias Octet =
Basics.Int

an 8-bit word masquerading as an Int - we don't have an elm Byte type yet


type alias ByteString =
List Octet

a ByteString - a list of Octets

Functions

encode : ByteString -> String

encode a ByteString as Base64

decode : String -> Result String ByteString

decode a Base64 String