SIP digest authentication checker
Paste the 401 or 407 and the request that answers it, then enter the password. Nothing is uploaded.
- Runs in your browser
- No sign-up
Input
Use test values. Hashed in this page only; not stored and not in the share link.
Result
- expected
- 94ab28fb287ce5aa52b322ed6200f564
- in the request
- 94ab28fb287ce5aa52b322ed6200f564
Challenge and credentials
| WWW-Authenticate (401) | Authorization | |
|---|---|---|
| realm | sip.example.com | sip.example.com |
| nonce | b7c9036dbf357f7683f054aea940e5a3 | b7c9036dbf357f7683f054aea940e5a3 |
| algorithm | MD5 | MD5 |
| qop | auth | auth |
| username | alice | |
| uri | sip:sip.example.com | |
| nc | 00000001 | |
| cnonce | 0a4f113b9c2e | |
| response | 94ab28fb287ce5aa52b322ed6200f564 | |
| Request-URI | sip:sip.example.com |
Step by step · MD5
- HA1 = H(username:realm:password)
alice:sip.example.com:‹password›5ff9d260167844a1d3bdfe15ecefbe94 - HA2 = H(method:uri)
REGISTER:sip:sip.example.comf5a9c05d4ad57c53aaa1a7b89507efaa - response = H(HA1:nonce:nc:cnonce:qop:HA2)
5ff9d260167844a1d3bdfe15ecefbe94:b7c9036dbf357f7683f054aea940e5a3:00000001:0a4f113b9c2e:auth:f5a9c05d4ad57c53aaa1a7b89507efaa94ab28fb287ce5aa52b322ed6200f564
Registrations or calls failing authentication on a trunk or PBX? IDNTEQ can help. SIP and WebRTC consulting
About this tool how it checks, common mistakes, specs, FAQ
The checker reads the challenge (WWW-Authenticate in a 401, Proxy-Authenticate in a 407) and the credentials in the next request (Authorization or Proxy-Authorization), takes the method and Request-URI from that request, and recomputes the response with the password you enter. Each step is shown: HA1, HA2 and the string hashed into the response.
When it does not match
It compares the challenge with the credentials (realm, nonce, opaque, algorithm, qop, the 8-hex-digit nc) and then tries the usual mistakes: another method, the Request-URI instead of the uri parameter, another algorithm, auth-int over a different body. If one of them matches, that is the cause. If none does, the password or the user name differs. A challenge with stale=true means only the nonce expired.
Specifications
- RFC 3261 §22 (SIP authentication; §22.4 the differences from HTTP Digest).
- RFC 2617 and RFC 7616 (Digest: A1, A2, qop, -sess, userhash), RFC 8760 (SHA-256 and SHA-512-256 in SIP).
- 401 and 407 in the SIP response codes.
FAQ
Is the password sent anywhere?
No. The hashes are computed in this page. The password is not stored, not put in the address bar and not included in the share link; use test values all the same.
Why does an ACK fail the check with its own method?
An ACK copies the INVITE's Authorization and Proxy-Authorization headers unchanged (RFC 3261 §22.1), so its response was computed with method INVITE. The checker tries INVITE for ACK and CANCEL.
Which algorithms are supported?
MD5, MD5-sess, SHA-256, SHA-256-sess, SHA-512-256 and SHA-512-256-sess, with qop auth, auth-int or none, and userhash. AKAv1-MD5 (IMS AKA) needs the SIM's RES and is not checked.