关于digest,请教高人
以下内容来自于firefox httpheader上截取的
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Digest realm="My Realm", qop="auth", nonce="104e14d2cfcc69a8b17bbdfa54675ef1", opaque="c64c0f5a2193f1814d0e8f032d66d6e9"
GET /authen/subdir/index.jsp HTTP/1.1
Authorization: Digest username="test", realm="My Realm", nonce="104e14d2cfcc69a8b17bbdfa54675ef1", uri="/authen/subdir/index.jsp", response="16a0f4594b03f3cb7ae8b765ff89a0ab", opaque="c64c0f5a2193f1814d0e8f032d66d6e9", qop=auth, nc=00000001, cnonce="082c875dcb2ca740"
在网上查得
response=MD5(HA1:nonce:nonceCount:clientNonce:qop:HA2)
HA1=MD5(A1)=MD5(usernaem:realm:password)
如果qop选项的值为auth,那么HA2散列计算方法为:
HA2=MD5(A2)=MD5(method:digestURI)
如果qop选项的值为auth-int,那么HA2散列计算方法为:
HA2=MD5(A2)=MD5(method:digestURI:H(entity-body))
问题1:
1) auth-int,和auth说法是可以保存一些状态信息,请问是如何实现的。那个H(entity-body)是什么意思
2)这种算法是如何防止窃听攻击的
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Digest realm="My Realm", qop="auth", nonce="104e14d2cfcc69a8b17bbdfa54675ef1", opaque="c64c0f5a2193f1814d0e8f032d66d6e9"
GET /authen/subdir/index.jsp HTTP/1.1
Authorization: Digest username="test", realm="My Realm", nonce="104e14d2cfcc69a8b17bbdfa54675ef1", uri="/authen/subdir/index.jsp", response="16a0f4594b03f3cb7ae8b765ff89a0ab", opaque="c64c0f5a2193f1814d0e8f032d66d6e9", qop=auth, nc=00000001, cnonce="082c875dcb2ca740"
在网上查得
response=MD5(HA1:nonce:nonceCount:clientNonce:qop:HA2)
HA1=MD5(A1)=MD5(usernaem:realm:password)
如果qop选项的值为auth,那么HA2散列计算方法为:
HA2=MD5(A2)=MD5(method:digestURI)
如果qop选项的值为auth-int,那么HA2散列计算方法为:
HA2=MD5(A2)=MD5(method:digestURI:H(entity-body))
问题1:
1) auth-int,和auth说法是可以保存一些状态信息,请问是如何实现的。那个H(entity-body)是什么意思
2)这种算法是如何防止窃听攻击的
...全文
相关推荐
模拟Digest认证的登录demo
在这个场景中,我们关注的是模拟Digest认证的登录过程,这是一个针对HTTP 401 Digest认证的实例,主要用于安全地访问受保护的资源,例如海康NVR(网络视频录像机)中的摄像头列表。
t-digest源码
T-Digest Java库3.2版本主要修复了序列化问题,更新了算法描述,并收集了关于序列化策略和测试案例的反馈。该版本还实验了R语言中的t-digest算法,定义了不同的大小界限函数,并通过实验探
Http Digest 鉴权
“摘要”式认证( Digest authentication)是一个简单的认证机制,最初是为HTTP协议开发的,因而也常叫做HTTP摘要,在RFC2671中描述。其身份验证机制很简单,它采用杂凑式(h
RFC 2617中文版(HTTP Digest Authentication)
RFC 2617中文版(HTTP Digest Authentication)RFC 2617中文版是对HTTP Digest Authentication的描述,该文档基于原英文版进行了校正和重新排版
perl-Digest-CRC
Perl-Digest-CRC 模块的主要功能包括:1.


