标签:order bsp int cell code comm container table word
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
import hashlib# ######## md5 ########hash = hashlib.md5()# help(hash.update)hash.update(bytes(‘admin‘, encoding=‘utf-8‘))print(hash.hexdigest())print(hash.digest())######## sha1 ########hash = hashlib.sha1()hash.update(bytes(‘admin‘, encoding=‘utf-8‘))print(hash.hexdigest())# ######## sha256 ########hash = hashlib.sha256()hash.update(bytes(‘admin‘, encoding=‘utf-8‘))print(hash.hexdigest())# ######## sha384 ########hash = hashlib.sha384()hash.update(bytes(‘admin‘, encoding=‘utf-8‘))print(hash.hexdigest())# ######## sha512 ########hash = hashlib.sha512()hash.update(bytes(‘admin‘, encoding=‘utf-8‘))print(hash.hexdigest()) |
标签:order bsp int cell code comm container table word
原文地址:http://www.cnblogs.com/chenyangqit/p/7230209.html