Copyright | (c) Kyle Van Berendonck 2014 |
---|---|
License | BSD3 |
Maintainer | kvanberendonck@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Codec.Rot13
Description
This module exposes the API for this package.
Typeclass Interfaces
The Rot13
typeclass is intended to perform the ROT13 cipher on the provided data, as if it
were representing a single ANSI-encoded character. This interface doesn't consider the storage
behaviour of the type at all, but is the fastest implementation if you need to integrate the
transformation as part of a stream.
Minimal complete definition
Instances
class Rot13Bytes a where Source #
The Rot13Bytes
typeclass is intended for when you need to perform the ROT13 cipher on some
data at the memory level. It stores the given data into a temporary buffer in memory, then runs
the cipher over the stored bytes to produce a new buffer. This operation is typically slower
than just using rot13
as part of a fusion pipeline.
Minimal complete definition
Methods
rot13bs :: a -> ByteString Source #
Instances
Storable a => Rot13Bytes a Source # | |
Rot13Bytes ByteString Source # | |
Constraint Interfaces
Compatibility
rot13word8 :: Word8 -> Word8 Source #
rot13string :: String -> String Source #