gleam/base

Functions

pub fn decode64(encoded: String) -> Result(BitString, Nil)

Decodes a base 64 encoded string into a BitString.

pub fn encode64(input: BitString, padding: Bool) -> String

Encodes a BitString into a base 64 encoded string.

pub fn url_decode64(encoded: String) -> Result(BitString, Nil)

Decodes a base 64 encoded string with URL and filename safe alphabet into a BitString.

pub fn url_encode64(input: BitString, padding: Bool) -> String

Encodes a BitString into a base 64 encoded string with URL and filename safe alphabet.