O'Reilly logo

Get Programming with Haskell by Will Kurt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required