使用Python3计算HTTP的摘要Response值
来源:互联网 发布:知乎匿名回答在哪看 编辑:程序博客网 时间:2024/06/06 01:47
以下代码,一目了然:("******"为需要填入的参数)
import hashliburl = "********"method = "********"nonce = "*******"realm = "*******"UserName = "*******"password = "*******"nc = "*******";cnonce = "*******";qop = "*******" ;data1 = UserName + ":" + realm + ":" +passwordm1 = hashlib.md5()m1.update(data1.encode())data2 = method+":"+url;m2 = hashlib.md5()m2.update(data2.encode())data3 = m1.hexdigest() + ":"+ nonce + ":"+ nc + ":"+ cnonce + ":"+ qop + ":"+ m2.hexdigest()m3 = hashlib.md5()m3.update(data3.encode())print(m3.hexdigest())
最后打印Response值!
参考文章:https://wenku.baidu.com/view/053319dff7ec4afe05a1df8e.html
阅读全文
0 0
- 使用Python3计算HTTP的摘要Response值
- 使用Python3计算RTSP的Response值
- 13.2 摘要的计算
- http的response类型
- C++中使用Json格式作为http的response返回值
- 使用urllib的urlopen函数获得HTTP Response Headers
- 论文《可信计算》的摘要
- android的HTTP摘要认证
- 使用python3的http.server模块要注意的问题
- 计算字符串的MD5值和MD5文件摘要
- python3 urllib包与http包的使用
- http response乱码的真相
- http response乱码的真相
- http response乱码的真相
- http---response.setHeader()的用法
- Http Response的一些理解
- Response.StatusCode的HTTP…
- java中使用MD5进行计算摘要
- 变量的存储类别小总结
- 20.当数据量超过一万后天接收不到前台传递过来的数据
- phpcms v9 目录式伪静态
- Android 如何使用小的Ratingbar
- Linux基础
- 使用Python3计算HTTP的摘要Response值
- 随机函数的应用
- 单调队列学习笔记
- HDU 3763 C D(二分)
- Java学习——面向对象基础
- java设计模式-单例模式
- python pygame练习
- PAT乙级1063
- 11. Container With Most Water