DATA-2Lesson 2 of 39 min

Encryption is safe only if its keys are safe

Encryption moves the problem: you must now protect the key. Most real failures come from how keys are kept, not from the cipher.

Where the key lives

Figure DATA-2.1Where the key is kept matters most

backup folder

records-backup.zip (encrypted)OK
backup-key.txtSAME PLACE
1/5

A college encrypts its nightly backup of student records. Good. But the key is saved in a text file in the same folder as the backup.

Step 1 of 5

Losing the key

Good encryption has no secret way in, not even for its makers. If every copy of a key is lost, the data can never be read again. That is why disk encryption gives you a recovery key when you turn it on, and why organisations back up their keys as carefully as their data, in a separate place.

Rules for keys

  • Never write keys or passwords into program code. Keys left in code shared publicly online are found by automated searches within minutes.
  • Never send keys over chat or email. Use a password manager or a key store to share them.
  • Use hardware where possible: security chips in laptops and phones, and dedicated key-storage devices in organisations.
  • Replace keys from time to time, and at once if one may have leaked.

DATA-2 counts as completed once you step through the figure to its last step.