- How encryption works: plaintext, ciphertext and keys
Encryption scrambles readable data into ciphertext using a key.
Data sent over a network can be intercepted. Encryption does not stop interception — instead it makes any intercepted data meaningless to whoever captures it.
- Plaintext — the original, readable data (it could be text, a file or an image).
- Ciphertext — the scrambled, unreadable output after encryption.
- Key — the value used by the algorithm to encrypt and/or decrypt.
PLAINTEXT --[ encrypt with key ]--> CIPHERTEXT --[ decrypt with key ]--> PLAINTEXT
"PAY £50" "x9$#@!q" "PAY £50"
The whole topic comes down to which key is used where. There are two families: symmetric (one key) and asymmetric (a key pair). Getting the key roles right is the single biggest source of marks in this section.
- Encryption makes intercepted data unreadable — it does not prevent interception.
- Plaintext = readable original; ciphertext = encrypted output.
- A key drives the encrypt/decrypt process.
- Two families: symmetric (one key) and asymmetric (a key pair).