Codec.Binary.Base32

dataenc-0.13.0.4: Data encoding library

Codec.Binary.Base32

Description

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

Further documentation and information can be found at http://www.haskell.org/haskellwiki/Library/Data_encoding.

Synopsis

- encode :: [Word8] -> String
- decode :: String -> Maybe [Word8]
- decode' :: String -> [Maybe Word8]
- chop :: Int -> String -> [String]
- unchop :: [String] -> String

# Documentation

encode :: [Word8] -> String

Encode data.

decode :: String -> Maybe [Word8]

Decode data (strict).

decode' :: String -> [Maybe Word8]

Decode data (lazy).

chop

Arguments

:: Int | length of individual lines
-> String |
-> [String] |

Chop up a string in parts.

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

unchop :: [String] -> String

Concatenate the strings into one long string.