diff options
Diffstat (limited to 'src/Data/ByteString/Base32')
-rw-r--r-- | src/Data/ByteString/Base32/Hex.hs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/Data/ByteString/Base32/Hex.hs b/src/Data/ByteString/Base32/Hex.hs new file mode 100644 index 0000000..dad222f --- /dev/null +++ b/src/Data/ByteString/Base32/Hex.hs | |||
@@ -0,0 +1,33 @@ | |||
1 | -- | | ||
2 | -- Copyright : (c) Sam Truzjan 2013 | ||
3 | -- License : BSD3 | ||
4 | -- Maintainer : pxqr.sta@gmail.com | ||
5 | -- Stability : stable | ||
6 | -- Portability : portable | ||
7 | -- | ||
8 | -- Efficient encoding and decoding of base32hex encoded bytestring | ||
9 | -- according to RFC 4648. <http://tools.ietf.org/html/rfc4648> | ||
10 | -- | ||
11 | -- This module recommended to be imported as @import | ||
12 | -- Data.ByteString.Base32.Hex as Base32Hex@ to avoid name clashes | ||
13 | -- with @Data.ByteString.Base32@. | ||
14 | -- | ||
15 | module Data.ByteString.Base32.Hex | ||
16 | ( encode | ||
17 | , decode | ||
18 | , decodeLenient | ||
19 | ) where | ||
20 | |||
21 | import Data.ByteString as BS | ||
22 | |||
23 | |||
24 | -- | Encode a bytestring into base32hex form. | ||
25 | encode :: ByteString -> ByteString | ||
26 | encode = undefined | ||
27 | |||
28 | -- | Decode a base32hex encoded bytestring. | ||
29 | decode :: ByteString -> ByteString | ||
30 | decode = undefined | ||
31 | |||
32 | decodeLenient :: ByteString -> ByteString | ||
33 | decodeLenient = undefined \ No newline at end of file | ||