rot13-0.1.0.0: Fast ROT13 cipher for Haskell.

Copyright(c) Kyle Van Berendonck, 2014
LicenseBSD3
Maintainerkvanberendonck@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellTrustworthy
LanguageHaskell2010

Codec.Rot13

Contents

Description

This module exposes all the API for this package.

Synopsis

Word

rot13word :: Word -> Word Source

Perform the ROT13 cipher on the given ANSI encoded Word.

rot13word8 :: Word8 -> Word8 Source

Like rot13word, but using the smaller Word8 type.

   rot13word8 = fromIntegral . rot13word . fromIntegral

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