Python md5 password value

前端 未结 4 1050
慢半拍i
慢半拍i 2020-12-19 23:47

I have this change password request form.In which the user enter their oldpasswords.

this oldpassword is the md5 format.

How to compare the md5 value from db

4条回答
  •  悲&欢浪女
    2020-12-20 00:28

    It's not md5, it's sha1 - "sha1$xxx.

    You'd have to use sha1 functions instead. There is a documentation on this at http://docs.python.org/library/sha.html

提交回复
热议问题