dataenc-0.9: Data encoding library currently providing Uuencode, Base64, Base64Url, Base32, Base32Hex, and Base16.ContentsIndex
Codec.Binary.Base64
Description

Base64 module.

Implemented as specified in RFC 4648 (http://tools.ietf.org/html/rfc4648).

Synopsis
encode :: [Word8] -> String
decode :: String -> Maybe [Word8]
chop :: Int -> String -> [String]
unchop :: [String] -> String
Documentation
encode :: [Word8] -> String
Encode data.
decode :: String -> Maybe [Word8]
Decode data.
chop
:: Intlength of individual lines
-> String
-> [String]

Chop up a string in parts.

The length given is rounded down to the nearest multiple of 4.

Notes:

  • PEM requires lines that are 64 characters long.
  • MIME requires lines that are at most 76 characters long.
unchop :: [String] -> String
Concatenate the strings into one long string.
Produced by Haddock version 0.8