Crypto 1: Intro to cryptography

by Arnav Vora

Cryptography is the process of hiding information or communicating securely in an environment where everyone is trying to read the communication. Most cryptography examples involve Alice and Bob trying to communicate while Eve listens in. Today, we explored the basics of cryptography, starting with the most fundamental classical ciphers used before we had powerful computers. However, these ciphers are completely inadequate to hide data in today's age. We learn of ways that computers can break these ciphers, and then move to discussing more modern forms of encryption. A fundamental operation in modern cryptography is XOR. This can be used to create the One-time Pad, a mathematically perfectly secure cipher that reveals no information about the information being sent. However, this cipher isn't practical in most scenarios, and it has many conditions for it to actually achieve perfect security.

Slides

Challenges

The following challenges in increasing difficulty are deployed to platform.acmcyber.com to practice the concepts covered in the slides.

  • Challenge 1 - crypto/caesar-turns-47
  • Challenge 2 - crypto/substitute
  • Challenge 3 - crypto/vigenere-is-kill
  • Challenge 4 - crypto/xor-practice
  • Challenge 5 - crypto/practice-run

Resources

The following resources are great to practice/learn about the ciphers covered in the slides.

  • dcode.fr: This website hosts many classical ciphers, and provides tools for encryption, decryption, and automatic cracking of ciphers. This is a staple for classical cryptography challenges.
  • guballa Substitution Solver: My personal favorite website to crack monoalphabetic substitution ciphers.
  • Cyberchef: This website also hosts many ciphers, and provides tools for encryption, decryption, and automatic cracking. It is very powerful at detecting the cipher used in encryption if is unknown, and is also a staple for classical cryptography challenges.