Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
4 votes
2 answers
523 views

Caesar-Cipher Implementation

Background I am a total beginner in Haskell, so after reading the Starting out-chapter of "Learn you a Haskell", I wanted to create my first program that actually does something. I decided to do the ...
user avatar
4 votes
3 answers
1k views

Classic cryptography toolbox: Caesar, Vigenere and ADFGVX ciphers

I wrote a program in haskell that aims to let the user encrypt, decrypt and crack/cryptanalyse pre-electromechanical era ciphers in Haskell. I want to know your opinion on it since this is my first ...
Guilherme Lima's user avatar
2 votes
2 answers
2k views

Caesar Cipher in Haskell, on every other character

I'm learning Haskell, and I tried to do an exercise which it is an implementation of the Caesar Cipher method. The problem asks for cipher a text which it is in lower case and can contain characters ...
OnlyDavies's user avatar
4 votes
1 answer
1k views

Caesar Cipher in Haskell

I've come up with this simple implementation of the Caesar cipher. It takes an integer argument and a file to produce the cipher text like so: ...
qcassimiro's user avatar
3 votes
1 answer
451 views

Caesar and Vigenère ciphers in Haskell, Take 2 (not so simple this time)

I've posted my simple ciphers on Code Review several days ago (link: here). I refactored my code and tried to define a more general "cipher" function, according to Zeta's excellent advice. I've split ...
Eugleo's user avatar
  • 267
5 votes
1 answer
779 views

Caesar and Vigenère ciphers in Haskell the simple way

There are two ciphers, Caesar and Vigenère, both with an encoder and a decoder. Both work with spaces and can be passed any case (the output will be always lowercased, though). I'm a complete Haskell ...
Eugleo's user avatar
  • 267
7 votes
2 answers
5k views

Caesar Shift in Haskell

I started learning Haskell a couple of days ago and decided to build a Caesar shift in it. ...
muddyfish's user avatar
  • 275
1 vote
1 answer
292 views

MonoAlphabetic and PolyAlphabetic ciphers in Haskell

This code defines functions to cipher text with both mono-alphetic (Caesar) ciphers and poly-alphabetic ciphers. I also define a shortcut for rot13. I like this code and I think it is easy to read, ...
Caridorc's user avatar
  • 28k
6 votes
1 answer
2k views

Brute force Caesar Cipher decrypter

I wrote the following that tries to crack a message that was encrypted via a simple Caesar cipher through brute force. I'm fairly new to Haskell, so any and all input is appreciated. Because there are ...
Carcigenicate's user avatar
3 votes
1 answer
684 views

Haskell encryption tips

I wrote a variation of the Caeser Cipher and would like some feedback. Is it idiomatic? Can you generally see anything that can be improved? Use example: ...
Carcigenicate's user avatar
1 vote
1 answer
2k views

Substitution Cipher in Haskell

Learn You a Haskell presents the Caesar Cipher: The Caesar cipher is a primitive method of encoding messages by shifting each character in them by a fixed number of positions in the alphabet ...
Kevin Meredith's user avatar