我是靠谱客的博主 沉默过客,这篇文章主要介绍Asterisk鉴权算法,现在分享给大家,希望可以做个参考。

客户端发送的鉴权信息如下:

Digest username="103", realm="asterisk", nonce="51d89e6e", uri="sip:102@192.168.50.26", algorithm=MD5, response="e9754418dd7dbea9ba740001f8d62598"

Asterisk鉴权算法:

a1 = username:realm:secret  (secret是服务器端保存的密码)

a1_hash = md5_hash(a1)

a2 = request_method:uri

a2_hash = md5_hash(a2)

resp_hash = md5_hash(a1_hash:nonce:a2_hash)

然后通过resp_hash的值和鉴权信息中的response字段值做比较

(在客户端发送如上鉴权信息之前,asterisk已经将客户端计算response值得必要信息返回,这些必要信息包括realm、nonce,其中realm="asterisk",nonce=random())


最后

以上就是沉默过客最近收集整理的关于Asterisk鉴权算法的全部内容,更多相关Asterisk鉴权算法内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(49)

评论列表共有 0 条评论

立即
投稿
返回
顶部