Lesson 15. Capstone: Secret messages!

This capstone covers

  • Learning about the basics of cryptography
  • Using basic types to model your data
  • Making practical use of Enum and Bounded
  • Writing and making instances of your own Cipher class

Everybody loves the idea of being able to communicate with a friend in secret. In this capstone, you’re going to take your knowledge of types and type classes to build out a few example ciphers. A cipher in cryptography is a means of encoding a message so that others can’t read it. Ciphers are the foundation of cryptography, but they’re also just plain fun to play around with. You’ll first look at an easy-to-implement and easy-to-break cipher, then you’ll learn more about the basics of encrypting characters, ...

Get Get Programming with Haskell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.