An interface to Base64 codec.
- encodeBase64 :: String -> String
- encodeBase64BS :: ByteString -> ByteString
- encodeBase64LBS :: ByteString -> ByteString
- decodeBase64 :: String -> String
- decodeBase64BS :: ByteString -> ByteString
- decodeBase64LBS :: ByteString -> ByteString
Encoding
encodeBase64 :: String -> StringSource
lazilly encodes a stream of data to
Base64. The string doesn't have to be finite. Note that the string
must not contain any letters which aren't in the range of U+0000 -
U+00FF.
encodeBase64
str
encodeBase64BS :: ByteString -> ByteStringSource
strictly encodes a chunk of data to Base64.
encodeBase64BS
bs
encodeBase64LBS :: ByteString -> ByteStringSource
lazilly encodes a stream of data to
Base64. The string doesn't have to be finite.
encodeBase64LBS
lbs
Decoding
decodeBase64 :: String -> StringSource
lazilly decodes a stream of data from
Base64. The string doesn't have to be finite.
decodeBase64
str
decodeBase64BS :: ByteString -> ByteStringSource
strictly decodes a chunk of data from
Base64.
decodeBase64BS
bs
decodeBase64LBS :: ByteString -> ByteStringSource
lazilly decodes a stream of data from
Base64. The string doesn't have to be finite.
decodeBase64LBS
lbs