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.
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?
Explain what authenticated encryption is and why using 'encrypt-then-MAC' or AEAD modes (like Galois Counter Mode) is generally preferred over separate unauthenticated encryption. Give a concrete example of an attack that becomes possible when authentication is omitted.
You're leading an incident where an attacker obtained database backups encrypted with a symmetric key stored in application configuration. Outline immediate containment steps, forensic steps to determine exposure, short-term remediation (key rotation and re-encryption plan), and long-term changes to prevent recurrence.
Explain forward secrecy and perfect forward secrecy (PFS). Describe how Diffie-Hellman (DH) and Elliptic-Curve Diffie-Hellman Ephemeral (ECDHE) key exchanges achieve forward secrecy in TLS, and discuss limitations: what forward secrecy protects against and what it doesn't (e.g., server key compromise vs session key exposure).
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.
Unlock Full Question Bank
Get access to all 39 Cryptography Fundamentals interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.