Search⌘ K

A Cryptography Primer

Explore the essential concepts of cryptography to understand how encryption algorithms and message authentication codes provide confidentiality and integrity in distributed systems. Learn about ciphers, such as stream and block ciphers, and how authenticated encryption secures communication.

Cryptography is a very vast field. So, we will learn only the basics of cryptography in this section.

Cryptography

One of the most central pieces in cryptography is the cipher.

Cipher

A cipher is an algorithm for converting a piece of data, called plaintext, into another piece of data, called ciphertext, which appears as random data and reveals no information about the original data.

We can also define a cipher as a pair of efficient algorithms (E,D)(E, D) where:

  • EE: K×MCK \times M \to C is an encryption function receiving a plaintext (M) and a key (K) as an input and providing a ciphertext (C) as an output.
  • DD: K×CMK \times C \to M
...