Copyright (c) 2019 Emily Pillmore BSD-style Emily Pillmore Experimental portable None Haskell2010

Data.Text.Encoding.Base64

Description

This module contains the combinators implementing the RFC 4648 specification for the Base64 encoding including unpadded and lenient variants

Synopsis

Documentation

Encode a Text value in Base64 with padding.

Decode a padded Base64-encoded Text value

Encode a Text value in Base64 without padding.

Note: in some circumstances, the use of padding ("=") in base-encoded data is not required or used. This is not one of them. If you are absolutely sure the length of your text is divisible by 3, this function will be the same as encodeBase64 with padding, however, if not, you may see garbage appended to your text.

Decode an unpadded Base64-encoded Text
Leniently decode a Base64-encoded Text value. This function will not generate parse errors. If input data contains padding chars, then the input will be parsed up until the first pad character.
Tell whether a Text value is Base64-encoded