提交注册用户数据后出来这个,错误原因是update()必须指定要加密的字符串的字符编码

 

 

#encryption
s1 = sha1()
s1.update(upwd.encode("utf8"))
upwd3 = s1.hexdigest()

 

相关文章:

  • 2021-12-22
  • 2021-06-20
  • 2021-07-03
  • 2021-12-29
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
相关资源
相似解决方案