大网数据广告活动
账户与安全

Contents of a Digest Challenge

· 52CE 我爱测

The size of a Digest Access challenge must be less than 2048 bytes.

The size of a Digest Access challenge must be less than 2048 bytes. The following example shows a challenge assigned to the character string szChallenge.

szChallenge = "realm=\"Microsoft_Example_Forest\",";
algorithm = "MD5-sess\", qop=\"auth\", nonce=\"0123456789abcdef\"";

Note:
The challenge string is enclosed in double quotes and contains embedded double quotes. Embedded double quotes must be preceded (escaped) with a backslash (\).

A Digest challenge can contain the following directives.

Directive Description
realm An implementation-defined hint to the client about which credentials are required. The client should display this information to the user if it is prompting for credentials.
algorithm Microsoft Digest supports MD5 and MD5-Sess. For optimal performance, use MD5-Sess.
qop This directive can be set to auth, auth-int, or auth-conf. For more information, see Quality of Protection and Ciphers.
nonce A unique encoded value generated by the server for each challenge. This value must not be altered by the client.
opaque Contains a reference for the security context that is being established. For more information, see Maintaining the Security Context Between Connections.
cipher(SASL only) The list of ciphers that the server supports. This element can be present in a Digest SASL challenge only if the qop directive specifies auth-conf. For more information, see Quality of Protection and Ciphers.
charset This directive can be set to utf-8 if the server can process UTF-8–encoded user names and realms. If the client understands the charset directive, it can respond by using UTF-8–encoded values.

Microsoft Digest generates the Digest challenge string for server applications. For details, see Generating the Digest Challenge.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。