Skip to content

Little Haskell Library to perform caesar cipher on strings

License

Notifications You must be signed in to change notification settings

KevinGimbel/caesar-cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CaesarCipher

Haskell library to perform a Caesar Cipher on text.

Usage

Function signatures

encode

-- [Char] = String to encode
-- Int    = Number of letters to shift by
encode :: [Char] -> Int -> [Char]

decode

-- [Char] = String to decode
-- Int    = Number of letters the string was shifted by
decode :: [Char] -> Int -> [Char]

Example

import CaesarCipher (encode, deoce)

main :: IO ()
main = do
    putStrLn (encode "Hello World" 12)
    putStrLn (decode "Tqxxa Iadxp" 12)

Links

About

Little Haskell Library to perform caesar cipher on strings

Topics

Resources

License

Stars

Watchers

Forks