Scrapbook-0.4.0: code examples
Copyright© Frank Jung 2022
LicenseGPL-3
Safe HaskellSafe-Inferred
LanguageHaskell2010

Caesar

Description

Code from Haskell Bookcamp by Philipp Hagenlocher

This is my version of a simplified Caesar Cipher.

Synopsis

Documentation

caesar :: Int -> String -> String Source #

Simple implementation of Caesar Cipher.

isAscii :: Char -> Bool Source #

Limited ASCII character set, includes all printable characters except the space character.

asciiRot :: Int -> Char -> Char Source #

Rotate a ascii character. 94 = 126 - 33 + 1 33 is starting offset of printable characters (after space)