当前位置:网站首页>Interface automation -md5 password encryption
Interface automation -md5 password encryption
2022-06-25 20:12:00 【chinrock】
# quote hashlib, Belong to python Self contained , No installation required
import hashlib
''' Package acquisition MD5 Methods '''
class MD5:
def get_md5(self,psw):
# Instantiation md5 object , And then call update Method
md5=hashlib.md5()
# Call the encryption method to encrypt directly
md5.update(psw.encode("utf-8"))
# return md5 password
return md5.hexdigest()
# hash.digest()
# Back to summary , As a binary data string value
#
# hash.hexdigest()
# Back to summary , As a hexadecimal data string value
Encrypted password 
hash.digest()
Back to summary , As a binary data string value
hash.hexdigest()
Back to summary , As a hexadecimal data string value
边栏推荐
- Record the training process
- Applet multi image to Base64 upload
- Web container basic configuration
- 在打新债开户证券安全吗?低佣金靠谱吗
- PAT B1051
- String since I can perform performance tuning, I can call an expert directly
- Can the stock account opened through qiniu school be used? Is the fund safe?
- 200 OK (from memory cache) and 200 OK (from disk cache)
- <C>. Calculation date to day conversion
- Is it safe to open a new bond? Is low commission reliable
猜你喜欢

Applet canvas generate sharing Poster

Hdoj topic 2005 day

PAT B1076

SQL statement select summary

Pcl+vs2019 configuration and some source code test cases and demos

Suddenly found that the screen adjustment button can not be used and the brightness can not be adjusted

Number of wechat applet custom input boxes

Web container basic configuration

Arduino read temperature

Redis practice: smart use of data types to achieve 100 million level data statistics
随机推荐
2021-08-25
Panda weekly -2022/02/18
打新债网上开户安全吗,需要注意什么
Force wechat page font size to be 100%
Nnformer reading notes
Redis practice: smart use of data types to achieve 100 million level data statistics
Pat b1054 average (20 points)
Applet password input box
PAT B1064
Short video is just the time. How can you quickly build your video creation ability in your app?
Go language installation and uninstallation
Is it safe to open a new bond? Is low commission reliable
[untitled]
Remember to deploy selenium crawler on the server
Huawei fast application access advertising service development guide
201604-4 test title: Game (BFS search maze)
Avoid material "minefields"! Play super high conversion rate
PAT B1071
Pcl+vs2019 configuration and some source code test cases and demos
Now meditation: crash service and performance service help improve application quality