What is digest authentication?

Digest authentication is an HTTP authentication scheme that proves a user's identity without ever transmitting the actual password, instead sending a cryptographic hash derived from the password combined with server-supplied and request-specific data.

Key Points

Example

A legacy internal tool still uses digest authentication so that even if traffic were intercepted, the attacker would only see a hashed, nonce-bound value rather than the actual password.

Interview Tip

A concise interview answer is

Digest authentication proves identity by hashing the password together with a server-issued nonce instead of sending the password itself, so it's safer than Basic auth over unencrypted connections. It's largely legacy now—most modern applications use HTTPS with OAuth2 or JWT-based token authentication instead.

Last updated: 11 November 2026

Previous question: In your application, there are two types of users: ADMIN and USER. Each type should have access to different sets of API endpoints. Explain how you would configure Spring Security to enforce these access controls based on the user's role.

Next question: What is the best practice for storing passwords in a Spring Security application?

More Spring Security - Level I interview questions

All Spring Security - Level I questions