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

Write a function that compares two byte strings for equality in constant time, suitable for verifying a MAC (e.g. an HMAC tag) without using a language's built-in constant-time-compare helper. Explain specifically why your implementation doesn't leak timing information, and how you'd test that claim.

HardTechnical
67 practiced

Your organization still relies on SHA-1 in legacy components including certificate signatures and internal git repositories. Create a phased migration plan to stronger hashes (SHA-256 or better) that minimizes downtime, covers certificate replacement and repository migration, addresses interoperability with older clients, and verifies successful migration.

MediumTechnical
85 practiced

Compare block cipher modes of operation such as CBC and GCM. In a system that requires encryption for disks (at-rest logs) and for transport (TLS-like traffic), which mode(s) would you choose for each use case and why? Discuss IV/nonce requirements and integrity guarantees.

MediumTechnical
96 practiced

Compare PBKDF2, bcrypt, scrypt, and Argon2 at a high level. For each describe its primary design goals, whether it is CPU-bound or memory-hard, how resistant it is to GPU/ASIC acceleration, and any known side-channel concerns. For a greenfield web service today, state which you would choose by default and justify that choice in terms of security and deployability.

HardTechnical
90 practiced

Provide a detailed analysis comparing RSA and elliptic curve cryptography (ECC) for large-scale TLS termination where millions of handshakes occur daily. Address CPU and memory cost per handshake, signature verification versus generation costs, key and certificate sizes, hardware acceleration impact, caching strategies, and long-term maintainability.

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.