Cryptography Fundamentals Questions

Core concepts and vocabulary of cryptography: confidentiality, integrity, authentication, and non-repudiation; the difference between symmetric and asymmetric primitives; and how standard algorithms, libraries, and protocols fit together. Covers threat models, common standards, and applying primitives and cryptographic libraries correctly to real-world security problems. The entry point for the cryptography track.

MediumTechnical
97 practiced

Explain how authenticated key exchange (AKE) protocols combine confidentiality and authentication. Choose a specific AKE (e.g., TLS 1.3 handshake with ECDHE + signatures) and describe how it defends against man-in-the-middle attacks and provides assurance on peer identity.

HardSystem Design
80 practiced

Design a certificate revocation-checking approach for a global-scale service: compare CRLs, OCSP, and OCSP stapling on latency, availability, and privacy, and explain when short-lived certificates are a better alternative to revocation checking altogether. How would you detect and respond to a spike in failed revocation checks across your client fleet?

MediumTechnical
90 practiced

Implement PKCS#7 padding and unpadding functions in Python for a block cipher with a given block size. Provide: def pad(data: bytes, block_size: int) -> bytes and def unpad(data: bytes, block_size: int) -> bytes. The unpad function must validate padding and raise an exception for invalid padding, and you should explain how to validate padding without creating an easy padding oracle vulnerability during decryption flows.

EasyTechnical
82 practiced

State recommended key length guidance for common algorithms: AES (symmetric), RSA (classical public-key), and elliptic curve algorithms (ECDSA/ECDH). Explain why key length matters and what operational considerations (performance, lifespan, algorithm migration) influence your choice of length.

MediumTechnical
74 practiced

Why can't you build a secure MAC by simply computing hash(key || message)? Walk through the HMAC construction (the nested inner/outer padding), and explain specifically what attack this defends against that the naive approach doesn't.

Unlock Full Question Bank

Get access to all Cryptography Fundamentals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.