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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.