HsOpenSSL-0.10.1.2: (Incomplete) OpenSSL binding for Haskell

OpenSSL.EVP.Base64

Contents

Description

An interface to Base64 codec.

Synopsis

Encoding

encodeBase64 :: String -> StringSource

encodeBase64 str 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.

encodeBase64BS :: ByteString -> ByteStringSource

encodeBase64BS bs strictly encodes a chunk of data to Base64.

encodeBase64LBS :: ByteString -> ByteStringSource

encodeBase64LBS lbs lazilly encodes a stream of data to Base64. The string doesn't have to be finite.

Decoding

decodeBase64 :: String -> StringSource

decodeBase64 str lazilly decodes a stream of data from Base64. The string doesn't have to be finite.

decodeBase64BS :: ByteString -> ByteStringSource

decodeBase64BS bs strictly decodes a chunk of data from Base64.

decodeBase64LBS :: ByteString -> ByteStringSource

decodeBase64LBS lbs lazilly decodes a stream of data from Base64. The string doesn't have to be finite.