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

A microservice needs to encrypt small high-frequency messages with minimal latency. Evaluate trade-offs between using symmetric AEAD (AES-GCM), hybrid encryption per recipient, or public-key authenticated encryption. Consider throughput, key management complexity, bandwidth, and security properties (confidentiality, authentication). Recommend an approach and justify.

HardTechnical
87 practiced

Case study: you are responsible for migrating multiple services from custom in-house cryptographic code to libsodium. Draft a migration plan that includes inventory of primitives and usages, mapping to libsodium equivalents, interop and compatibility testing, key rotation and data migration strategies, rollout phases, audit and review processes, and rollback plans. Identify key risks and mitigations.

EasyTechnical
138 practiced

Explain the Random Oracle Model (ROM) and how it differs from the standard model in security proofs. Discuss practical implications when a real-world scheme has a proof in the ROM but uses a concrete hash function as the instantiation. Provide one example of where an ROM proof does not guarantee security in practice and outline why.

EasyTechnical
70 practiced

Give a high-level walkthrough of a TLS handshake: what happens at each step, which cryptographic primitives are used where (certificates, asymmetric key exchange, symmetric session keys, MAC/AEAD), and what properties TLS is actually trying to guarantee. What's one common way this can fail in practice?

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.

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.