Copyright | (c) Kyle Van Berendonck, 2014 |
---|---|
License | BSD3 |
Maintainer | kvanberendonck@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
This module exposes all the API for this package.
- rot13word :: Word -> Word
- rot13word8 :: Word8 -> Word8
- rot13char :: Char -> Char
- rot13 :: String -> String
- rot13bs :: ByteString -> ByteString
Word
rot13word8 :: Word8 -> Word8 Source
Char
rot13char :: Char -> Char Source
Perform the ROT13 cipher on a single Char
. A ROT13 cipher is the inverse of itself, so one
function will both suitably encode and decode. Thus, the following holds:
rot13char . rot13char = id
rot13 :: String -> String Source
Perform the ROT13 cipher on a String
. This is just equivalent to:
rot13 = map rot13char
ByteString
rot13bs :: ByteString -> ByteString Source
Like rot13
but for ByteString
s.