summaryrefslogtreecommitdiff
path: root/src/Data/ByteString/Base32
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data/ByteString/Base32')
-rw-r--r--src/Data/ByteString/Base32/Hex.hs33
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--
15module Data.ByteString.Base32.Hex
16 ( encode
17 , decode
18 , decodeLenient
19 ) where
20
21import Data.ByteString as BS
22
23
24-- | Encode a bytestring into base32hex form.
25encode :: ByteString -> ByteString
26encode = undefined
27
28-- | Decode a base32hex encoded bytestring.
29decode :: ByteString -> ByteString
30decode = undefined
31
32decodeLenient :: ByteString -> ByteString
33decodeLenient = undefined \ No newline at end of file