Symmetric vs asymmetric
Symmetric crypto uses one shared key for encryption and decryption - fast, used for bulk data. AES is the standard, typically AES-256 in GCM mode for authenticated encryption. Key exchange is the weakness - both parties need the same secret safely.
Asymmetric (public key) crypto uses a key pair - public key encrypts or verifies, private key decrypts or signs. RSA (2048-bit minimum, 3072+ recommended) and ECC (256-bit, e.g. secp256r1) are the main algorithms. ECC gives equivalent strength to RSA with much smaller keys, so it suits mobile and IoT.
Hashing
Hashing is one-way - turns data into a fixed-length digest, cannot be reversed. Used for integrity checks and password storage. SHA-256 and SHA-3 are current standards. Never use MD5 or SHA-1 for security purposes - both are broken for collision resistance. Passwords must be salted and hashed with a slow algorithm like bcrypt, scrypt, or Argon2, never a fast general hash alone.
PKI structure
A Certificate Authority (CA) issues digital certificates binding a public key to an identity, following X.509 format. The chain of trust runs Root CA to Intermediate CA to end-entity certificate. Root CAs are kept offline for security. A Certificate Signing Request (CSR) is submitted to get a cert issued.
Revocation and validation
CRL (Certificate Revocation List) is a downloadable list of revoked certs - slow and can be large. OCSP (Online Certificate Status Protocol) checks a single cert's status in real time - faster. OCSP stapling lets the server provide a signed, timestamped OCSP response itself, improving speed and privacy.
Key exchange and hybrid use
Diffie-Hellman (and ECDHE for forward secrecy) lets two parties agree a shared symmetric key over an insecure channel without sending the key itself. TLS uses this hybrid model: asymmetric crypto for the handshake/key exchange, symmetric crypto (AES) for the actual session data - asymmetric is too slow for bulk encryption.
Digital signatures
Signing uses the sender's private key on a hash of the message; anyone verifies with the sender's public key. This proves authenticity, integrity, and non-repudiation.
Common exam traps
- Confusing which key encrypts vs decrypts in asymmetric crypto (public encrypts/verifies, private decrypts/signs).
- Forgetting AES is symmetric and RSA/ECC are asymmetric.
- Thinking hashing is encryption - it is not reversible.
- Mixing up CRL (list, slower) with OCSP (real-time, single query).
- Not knowing PFS (Perfect Forward Secrecy) means session keys aren't compromised even if the long-term private key is later exposed - achieved via ephemeral Diffie-Hellman (DHE/ECDHE).
What is the current recommended symmetric encryption standard and mode?
AES-256, typically in GCM mode for authenticated encryption.
tap to reveal
What is the minimum recommended RSA key length today?
2048-bit minimum; 3072-bit or higher recommended for stronger security.
tap to reveal
Why is ECC preferred over RSA for mobile and IoT devices?
ECC gives equivalent security strength with much smaller key sizes, so it is faster and less resource-intensive.
tap to reveal
Which two hashing algorithms are considered broken and should not be used for security?
MD5 and SHA-1 - both are vulnerable to collision attacks.
tap to reveal
What algorithms should be used to securely hash and store passwords?
bcrypt, scrypt, or Argon2 - slow, salted algorithms, never a fast general hash alone.
tap to reveal
In asymmetric encryption, which key encrypts and which decrypts?
The public key encrypts (or verifies signatures); the private key decrypts (or creates signatures).
tap to reveal
What standard format do digital certificates follow?
X.509.
tap to reveal
What is the difference between CRL and OCSP?
CRL is a downloadable list of revoked certificates, slower; OCSP checks a single certificate's status in real time, faster.
tap to reveal
What does OCSP stapling do?
Lets the web server provide its own signed, timestamped OCSP response, improving speed and privacy versus a client querying the CA directly.
tap to reveal
What does Diffie-Hellman key exchange achieve?
Allows two parties to agree on a shared symmetric key over an insecure channel without transmitting the key itself.
tap to reveal
What is Perfect Forward Secrecy (PFS) and how is it achieved?
Session keys remain secure even if the long-term private key is later compromised; achieved using ephemeral Diffie-Hellman (DHE or ECDHE).
tap to reveal
Why does TLS use a hybrid encryption model?
Asymmetric crypto is used for the handshake/key exchange (secure but slow); symmetric crypto (AES) is used for the actual bulk data because it is fast.
tap to reveal
What proves authenticity, integrity, and non-repudiation of a message?
A digital signature - created by signing a hash of the message with the sender's private key, verified with their public key.
tap to reveal
Describe the PKI trust chain structure.
Root CA (kept offline) signs Intermediate CA certificates, which sign end-entity certificates, forming a chain of trust.
tap to reveal
What is a CSR?
A Certificate Signing Request - submitted to a CA to request that a certificate be issued for a public key and identity.
tap to reveal