python标准模块学习9_______md5模块
来源:互联网 发布:centos vsftpd 配置 编辑:程序博客网 时间:2024/06/05 07:45
之前介绍了hashlib,仔细看模块源码的话,会发现,该模块调用了md5模块,其很多方法实际上就是对md5模块的封装
1.生成哈希值
md5.md5(string).hexdigest()
或者
m = md5.md5()
m.update(string)
m.hexdigest()
2.用new生成hash值
md5.new(string).hexdigest()
0 0
- python标准模块学习9_______md5模块
- python标准模块学习1_______fnmatch模块
- python标准模块学习2_______re模块
- python标准模块学习4_______platform模块
- python标准模块学习5_______uuid模块
- python标准模块学习6_______urlparse模块
- python标准模块学习7_______webbrowser模块
- python标准模块学习8_______hashlib模块
- python标准模块学习10_______sha模块
- python标准模块学习11_______hmac模块
- python标准模块学习12_______json模块
- python标准模块学习13_______urllib2模块
- python标准模块学习14_______codecs模块
- python标准库fileinput模块学习
- python标准库os模块学习
- 【python标准库学习】re模块
- python标准模块学习3_______ConfigParser
- Python标准模块logging
- 学习计划(Degauss项目源代码分析)
- 【例题】【差分数组】NKOJ3754 数列游戏
- Android ScrollView中嵌套ListView,ListView根据内容自动调整高度
- 算法--求n!末尾0的个数
- java类的访问权限
- python标准模块学习9_______md5模块
- 不用私有API,一行代码获取当前响应链的First Responder
- samba服务器配置步骤
- 家长心态建设;一切都没想象的那么糟
- tftp 服务器配置 ubuntu 14.04.5
- CSS3 Filter的十种特效
- 让CALayer的shadowPath跟随bounds一起做动画改变
- 差分数组
- 位操作n&(n-1)用法