当前位置:网站首页>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
边栏推荐
- Yum command
- Thymleaf template configuration analysis
- PAT B1071
- H5 application conversion fast application
- Wechat applet cloud function does not have dependency option installed
- mysql load data infile
- Clickhouse disables automatic clearing of tables / columns, that is, disables TTL
- Two types of attribute injection methods
- <C>. Calculation date to day conversion
- JS asynchronism (I. asynchronous concept, basic use of web worker)
猜你喜欢
Impact of Huawei application transfer and application claim on user identification
Use of serialize() and serializearray() methods for form data serialization
Print 1 cute every 100 milliseconds ~ with a running lantern effect
PAT B1086
Understanding C language structure pointer
The native JS mobile phone sends SMS cases. After clicking the button, the mobile phone number verification code is sent. The button needs to be disabled and re enabled after 60 seconds
String since I can perform performance tuning, I can call an expert directly
New features of redis 6.0: take you 100% to master the multithreading model
2.3 partial sum of square and reciprocal sequences
Profile path and name
随机推荐
Applet canvas generate sharing Poster
2.16([Usaco2005 Nov]Ant Counting)
The functions in the applet page are better than those in app JS first execution solution
II Traits (extractors)
Redis core article: the secret that can only be broken quickly
Web components - Basics
node. JS express connect mysql write webapi Foundation
PAT B1066
Record the training process
Redis is a loser. If you don't understand the usage specification, you will spoil it
Automatic fitting when the applet reaches the top
2.2 step tariff
Yaml configuration
New features of redis 6.0: take you 100% to master the multithreading model
<C>. String comparison
2.15(Multiple of 3 Or 5)
Applet password input box
Using flex to implement the Holy Grail layout is as simple as that
K-fold cross validation
<C>. Figure guessing game