Cryptographic Hashing and Digital Signatures Questions

Cryptographic hash functions (collision resistance, preimage resistance), message authentication codes, and digital-signature schemes. Covers HMAC, signature verification, and how hashing underpins integrity, commitments, and authentication. Distinct from non-cryptographic hashing used in data structures.

HardTechnical
43 practiced

Your legacy API accepts certificate signatures using RSA PKCS#1 v1.5 and SHA-1. Outline concrete detection and mitigation actions to protect against Bleichenbacher-style oracle attacks and chosen-prefix collision threats. Include code-level changes, runtime mitigations, library updates, emergency policy changes, and a migration timeline prioritizing high-risk endpoints.

HardSystem Design
48 practiced

Design an API and versioning strategy for a cryptographic library that exposes hash and MAC primitives. Include how you will support algorithm agility, deprecation of broken hashes, runtime selection, safe defaults, and how you will prevent accidental misuse by application developers.

EasyTechnical
47 practiced

You're building a cache-key generator for a CDN, and a teammate suggests reusing the same fast hash function for hashing user passwords too, to keep the codebase simple. How would you respond, and what's the real boundary between a general-purpose hash like MurmurHash and a cryptographic hash function? Give three situations where a non-cryptographic hash is perfectly fine and three where using one would be a serious mistake.

MediumTechnical
50 practiced

A service signs messages built by concatenating fields without separators, say user || timestamp || amount. Demonstrate how two different sets of field values could produce the exact same concatenated string (and therefore the same signature), then propose a fix. What would you actually change about how these messages get serialized before signing, and what backward-compatibility issues would your fix create?

MediumTechnical
41 practiced

Discuss the security implications of truncating HMAC tags (for example, using a 64-bit tag instead of full output) in network protocols and APIs. How does truncation affect forgery probability, replay considerations, bandwidth, and latency? How would you select an appropriate truncation length for a given threat model?

Unlock Full Question Bank

Get access to all 19 Cryptographic Hashing and Digital Signatures interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.