HsOpenSSL-0.11.7.9: Partial OpenSSL binding for Haskell

Safe Haskell | None
Language | Haskell2010

OpenSSL.EVP.Base64

Contents

- Encoding
- Decoding

Description

An interface to Base64 codec.

Synopsis

- encodeBase64 :: String -> String
- encodeBase64BS :: ByteString -> ByteString
- encodeBase64LBS :: ByteString -> ByteString
- decodeBase64 :: String -> String
- decodeBase64BS :: ByteString -> ByteString
- decodeBase64LBS :: ByteString -> ByteString

# Encoding

encodeBase64 :: String -> String Source #

Deprecated: Use encodeBase64BS or encodeBase64LBS instead.

``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 -> ByteString Source #

``encodeBase64BS` bs` strictly encodes a chunk of data to Base64.

encodeBase64LBS :: ByteString -> ByteString Source #

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

# Decoding

decodeBase64 :: String -> String Source #

Deprecated: Use decodeBase64BS or decodeBase64LBS instead.

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

decodeBase64BS :: ByteString -> ByteString Source #

``decodeBase64BS` bs` strictly decodes a chunk of data from Base64.

decodeBase64LBS :: ByteString -> ByteString Source #

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