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

Your team is evaluating a new, non-standard hash function proposed for internal use instead of a NIST-standardized algorithm. What would you want to see before signing off on it, and what is the bar for approving it internally versus waiting for it to go through external standardization?

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

Your team is migrating a legacy signing library from RSA PKCS#1 v1.5 to RSA-PSS. Why is this considered a security improvement, what specifically was wrong with the old scheme's determinism, and what verification checks does your new implementation need to get right to avoid introducing a vulnerability during the migration?

MediumTechnical
74 practiced

Explain why using H(secret || message) as a MAC is insecure when the hash is a Merkle–Damgård construction (e.g., MD5/SHA-1) and describe the length-extension attack. Show the attack idea and then explain how HMAC fixes it, including why HMAC resists length-extension and what properties of the underlying hash it relies on.

MediumTechnical
49 practiced

Compare SHA-256, SHA-3, and BLAKE2 for a new cloud service that needs fast content hashing and occasional authenticated signing. Walk through the internal design differences that matter for your choice, how they affect performance in software and hardware, and which one you'd pick and why.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.