设为首页收藏本站
查看: 4687|回复: 5

关于XMPP之SASL认证Digest-Md5研究

[复制链接]
  • TA的每日心情
    奋斗
    昨天 08:49
  • 签到天数: 927 天

    [LV.10]以坛为家III

    发表于 2024-3-27 12:51:30 | 显示全部楼层 |阅读模式
    https://wiki.xmpp.org/web/SASL_and_DIGEST-MD5



    1. Create a string of the form "username:realm:password". Call this string X.
    2. Compute the 16 octet MD5 hash of X. Call the result Y.
    3. Create a string of the form "Y:nonce:cnonce:authzid". Call this string A1.
    4. Create a string of the form "AUTHENTICATE:digest-uri". Call this string A2.
    5. Compute the 32 hex digit MD5 hash of A1. Call the result HA1.
    6. Compute the 32 hex digit MD5 hash of A2. Call the result HA2.
    7. Create a string of the form "HA1:nonce:nc:cnonce:qop:HA2". Call this string KD.
    8. Compute the 32 hex digit MD5 hash of KD. Call the result Z.

    X=admin:ihongker.com:123456
    Y=md5消息摘要16位MD5(X)

    A1=Y:服务端告诉客户端的随机值:客户端生成的随机值:admin
    A2=AUTHENTICATE:xmpp/ihongker.com
    HA1=md5消息摘要32位(A1)
    HA2=md5消息摘要32位(A2)
    KD=HA1:nonce:00000001:客户端随机值:auth:HA2
    Z=md5消息摘要32位(KD)

    此时的Z为response的值

    点评

    海!外直播 bitly.net/gggii 禁闻视频 bitly.net/55qqqq 水质污染是国家机密,空气指标是国家机密,土壤污染是国家机密,三公消费是国家机密,贪腐金额是国家机密,官员财产是国家机密,连裸官妻儿信息也是国家机密…  发表于 4 天前
    谢谢分享  发表于 2024-10-3 14:59
    谢谢分享  发表于 2024-7-15 21:56
  • TA的每日心情
    开心
    6 天前
  • 签到天数: 575 天

    [LV.9]以坛为家II

    发表于 2024-3-30 09:53:49 | 显示全部楼层
    谢谢分享,已回复。
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    昨天 18:48
  • 签到天数: 341 天

    [LV.8]以坛为家I

    发表于 2024-7-15 22:04:17 | 显示全部楼层
    谢谢分享  
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    红盟社区--红客联盟 

    Processed in 0.059942 second(s), 23 queries.

    站点统计| 举报| Archiver| 手机版| 黑屋 |   

    备案号:冀ICP备20006029号-1 Powered by HUC © 2001-2021 Comsenz Inc.

    手机扫我进入移动触屏客户端

    关注我们可获取更多热点资讯

    Honor accompaniments. theme macfee

    快速回复 返回顶部 返回列表