course-design-of-database
course-design-of-database copied to clipboard
使用不安全的密码 (MD5)
https://github.com/cubxxw/course-design-of-database/blob/3ce345aa5bb771e02042d55261643ac71eb177d0/main/main.py#L35
print
(
"f0f
.e:h?f%e$1h4%"
,e)
#eo<f e
0f0f
.e:gih//ee ,tryf
#f5e<e88
cursor = conn.cursor()
#d=?g(cursorf9e<ee;:d8d8*f88f
def
get_md5
(
data
):
#h.>g=.e
e/e/h;
obj = hashlib.md5(
"12:;idrsicxwersdfsaersdfsdfresdy54436jgfdsjdxff123ad"
.encode(
'utf-8'
))
obj.update(data.encode(
'utf-8'
))