Skip to content
An encoder and decoder of Base64, Base32, and Base16 for Elm
Elm
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
tests
.gitignore
LICENSE
README.md
elm.json
package-lock.json

README.md

Elm Coder

An encoder and decoder for Base64, Base32 and Base16 (Hexadecimal).

Example

import Base32 exposing (decode, encode)


encodeFooBar =
    ("foobar"
        |> String.toList
        |> List.map Char.toCode
        |> encode
    )
        == Ok "Zm9vYmFy"


decodeFooBar =
    ("Zm9vYmFy"
        |> decode
        |> Result.map (List.map Char.fromCode >> String.fromList)
    )
        == Ok "foobar"
You can’t perform that action at this time.