CC ยท Data security
Encryption
Symmetric vs asymmetric, data at rest, in transit and in use, keys and key management basics.
Key points
- Symmetric encryption uses one shared secret key and is fast (AES).
- Asymmetric uses a public/private key pair and is used to exchange keys and sign (RSA, ECC).
- Encrypt data at rest (disks, databases), in transit (TLS) and, with special hardware, in use.
- The algorithm is public; security rests on keeping keys secret, so key generation, storage, rotation and destruction matter.
Practice questions
Which statement describes symmetric encryption?
- A public key encrypts and a private key decrypts
- The same secret key encrypts and decrypts
- A one-way function produces a fixed-size digest
- No key is needed because the algorithm is secret
Show answer
Answer: B. The same secret key encrypts and decrypts
Symmetric encryption uses the same key to encrypt and decrypt. Using a public/private pair describes asymmetric encryption.
Which items are examples of protecting data in transit?
- HTTPS between browser and web server
- Full-disk encryption on a server
- A VPN tunnel between two offices
- Encrypted columns in a database
- Locking the server room
Show answer
Answer: A. HTTPS between browser and web server, C. A VPN tunnel between two offices
HTTPS (TLS) and VPN tunnels protect data moving over a network. Disk encryption and database column encryption protect data at rest.
True or false: an encryption algorithm is only secure if its design is kept secret.
Show answer
Answer: False
False. Strong algorithms are public and heavily reviewed; security depends on keeping the key secret.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
