设为首页收藏本站
查看: 628|回复: 1

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

[复制链接]
  • TA的每日心情
    擦汗
    1 小时前
  • 签到天数: 725 天

    [LV.9]以坛为家II

    发表于 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的值
  • TA的每日心情
    开心
    12 小时前
  • 签到天数: 368 天

    [LV.9]以坛为家II

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

    使用道具 举报

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

    本版积分规则

    红盟社区--红客联盟 

    Processed in 0.055329 second(s), 21 queries.

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

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

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

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

    Honor accompaniments. theme macfee

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