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
86 practiced

Compare an encrypt-then-MAC construction (e.g. AES-CBC + HMAC) against a dedicated AEAD cipher like AES-GCM for protecting an HTTP API payload. Cover performance, hardware acceleration, streaming support, IV/nonce requirements, and where each approach is more likely to be implemented incorrectly.

MediumTechnical
91 practiced

Describe how you would perform a cryptographic library audit to find misuse (e.g., incorrect mode selection, improper padding, insecure defaults). What static and dynamic analysis tools or test vectors would you use, and how would you prioritize remediation across findings that vary in exploitability?

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
96 practiced

Your code needs N cryptographically secure random bytes for a key or nonce. Walk through how you'd get them correctly in Python and in C, and what specific mistakes in either language would quietly make the result insecure.

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 44 Cryptography Fundamentals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.