base64

object base64

Functions for working with base 64.

class Object
trait Matchable
class Any

Value members

Concrete methods

def decode[F[_] : RaiseThrowable]: (F, String) => Byte

Converts a stream of base 64 text in to a stream of bytes.

Converts a stream of base 64 text in to a stream of bytes.

If the text is not valid base 64, the pipe fails with an exception. Padding characters at the end of the input stream are optional, but if present, must be valid per the base 64 specification. Whitespace characters are ignored.

The default base 64 alphabet is used by this pipe.

def decodeWithAlphabet[F[_] : RaiseThrowable](alphabet: Base64Alphabet): (F, String) => Byte

Like decode but takes a base 64 alphabet. For example, decodeWithAlphabet(Bases.Alphabets.Base64Url) will decode URL compatible base 64.

Like decode but takes a base 64 alphabet. For example, decodeWithAlphabet(Bases.Alphabets.Base64Url) will decode URL compatible base 64.

def encode[F[_]]: (F, Byte) => String

Encodes a byte stream in to a stream of base 64 text. The default base 64 alphabet is used by this pipe.

Encodes a byte stream in to a stream of base 64 text. The default base 64 alphabet is used by this pipe.

def encodeWithAlphabet[F[_]](alphabet: Base64Alphabet): (F, Byte) => String

Like encode but takes a base 64 alphabet. For example, encodeWithAlphabet(Bases.Alphabets.Base64Url) will encode URL compatible base 64.

Like encode but takes a base 64 alphabet. For example, encodeWithAlphabet(Bases.Alphabets.Base64Url) will encode URL compatible base 64.