Applied Cryptography and Key Management Questions

Selecting and applying cryptographic primitives correctly: symmetric and asymmetric encryption, hashing, digital signatures, key derivation, secure random number generation, and public key infrastructure. Covers key lifecycle management, key exchange and distribution, choosing appropriate algorithms for a given constraint set including resource-constrained environments, and the forward-looking side of algorithm lifecycle: cryptographic agility and algorithm-migration strategy, forward secrecy, and the post-quantum cryptography transition and planning upgrades without breaking existing data or interoperability. The applied-crypto engineering layer, distinct from compliance-driven crypto standards.

EasyBehavioral
27 practiced

Behavioral: describe a concrete project where you designed or implemented cryptography in production. Using the STAR format, explain the problem, what you built, the algorithms and libraries you used, the trade-offs you weighed (security, performance, developer ergonomics), and the measurable outcome. If you don't have direct experience, describe a hypothetical project in the same level of detail.

EasyTechnical
43 practiced

What assurances and features does a Hardware Security Module (HSM) provide for key management and cryptographic operations (tamper resistance/evidence, FIPS assurance levels, secure key generation, sealed storage, key wrapping, attestation)? How does that change operational practice compared to a software-only key store, and when do you actually need dedicated hardware rather than a cloud KMS, a Kubernetes secret store, or a self-hosted vault?

EasyTechnical
50 practiced

Describe the purpose of a salt in password-based key derivation: what properties it needs (uniqueness, length, randomness), where it should be stored relative to the derived hash, and the operational risks of reusing or omitting it at scale. Then explain the difference between a salt and a pepper: how does adding a server-side secret pepper change the threat model for offline attacks, and what controls does protecting a pepper actually require?

MediumTechnical
28 practiced

Design a migration strategy to move a user database from PBKDF2 to Argon2id without forcing a mass password reset. Cover the schema changes needed to version hashes, the authentication-flow change that detects an old hash and re-hashes on successful login, options for migrating accounts that never log in again, and the metrics you'd watch to confirm the migration is succeeding.

EasyTechnical
27 practiced

You're starting a greenfield system expected to run for more than 10 years. List the factors you'd weigh when selecting cryptographic algorithms and key sizes for symmetric encryption, public-key encryption, signatures, and key exchange. How would you build in algorithm agility from day one, and how would you document these choices so a future team can safely migrate them?

Unlock Full Question Bank

Get access to all 24 Applied Cryptography and Key Management interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.