...

/

A Cryptography Primer

A Cryptography Primer

Let's learn the basic idea of cryptography and look into some basic mechanisms behind the techniques mentioned in the previous lessons.

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×M→CK \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×C→MK \times C \to M
...