Sign in

Intro to Computer Science / Unit 10: Cybersecurity and Impacts of Computing

10.2 Encryption Basics

3 practice questionsNot yet reviewed

Notes

Encryption scrambles data (plaintext) into unreadable form (ciphertext) using a key. Decryption turns it back.

  • Caesar cipher: shift each letter a fixed number of places. With shift 3, A becomes D, B becomes E, and so on.
  • Example: HELLO with shift 3 becomes KHOOR.
  • Symmetric encryption uses the same key to encrypt and decrypt. Public-key (asymmetric) encryption uses a public key to encrypt and a private key to decrypt.
  • HTTPS uses encryption so that data on the network cannot be read by others.
  • Simple ciphers like Caesar are easy to break (only 25 shifts), so real systems use complex math and long keys.

Practice

What is the Caesar cipher (shift 3) of the word CAT?
In public-key encryption, which key do you keep secret?
Why is the Caesar cipher not secure today?

Ready for more? Take the Unit 10 test.