Protecting Stored Data with Cryptography
| English | Chinese | Pinyin |
|---|---|---|
| cryptography | 密码学 | mì mǎ xué |
| plaintext | 明文 | míng wén |
| key | 密钥 | mì yào |
| ciphertext | 密文 | mì wén |
| keyspace | 密钥空间 | mì yào kōng jiān |
| symmetric encryption | 对称加密 | duì chèn jiā mì |
| AES | 高级加密标准 | gāo jí jiā mì biāo zhǔn |
| block cipher | 分组密码 | fēn zǔ mì mǎ |
Encryption basics
- Cryptography 密码学 hides information.
- Encryption combines plaintext 明文 with a key 密钥 to make ciphertext 密文.
- The keyspace 密钥空间 is the number of possible keys — an n-bit key has $2^n$.
Symmetric encryption
- Symmetric encryption 对称加密 uses the same key to encrypt and decrypt.
- The standard is AES 高级加密标准, a block cipher 分组密码.
- Both sides need the same secret key — sharing it safely is the challenge.
Symmetric encryption uses...
Symmetric = one shared key.
The standard modern symmetric block cipher is...
AES is the symmetric standard.
The scrambled output of an encryption algorithm is called ____.
Encryption turns plaintext into ciphertext.
Bigger keys, more security
- A larger keyspace takes an adversary longer to guess.
- Longer keys are more secure but slower.
- AES works on 128-bit blocks and secures Wi-Fi, browsing, and files.
Symmetric encryption is fast and strong, but it has one hard problem: both sides must already share the same secret key. Sending that key over an insecure channel would expose it — which is exactly what asymmetric cryptography solves next.
Encrypt by shifting letters
Encryption combines plaintext with a key. Here the key is the shift amount; only someone who knows it can decrypt.
A larger keyspace makes an encryption key harder to guess.
More possible keys = more guessing time.
How many possible keys does a 4-bit key have? (2^4)
$2^4 = 16$ possible keys.
A simple Caesar cipher shifts each letter by a fixed key. With key = 3, CAT becomes FDW. Only someone who knows the shift (the key) can turn FDW back into CAT. Real algorithms like AES use far larger keyspaces, but the idea is the same.
Cryptography turns plaintext into ciphertext using a key. A bigger keyspace ($2^n$ for an n-bit key) is harder to break. Symmetric encryption (e.g. AES) uses one shared key — fast and strong, but the shared key must be exchanged safely.