import hmac

def get_singa_true(timestamp):
    sha1 = hmac.new("d1b964811afb40118a12068ff74a12f4".encode('utf8'), digestmod='sha1')
    sha1.update("password".encode('utf8'))
    sha1.update("c3cef7c66a1843f8b3a9e6a1e3160e20".encode('utf8'))
    sha1.update("com.zhihu.web".encode('utf8'))
    sha1.update(str(timestamp).encode('utf8'))
    return sha1.hexdigest()

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2021-10-05
  • 2021-06-10
猜你喜欢
  • 2021-07-28
  • 2021-12-16
  • 2022-12-23
  • 2021-09-09
  • 2022-01-30
  • 2021-06-20
  • 2021-07-29
相关资源
相似解决方案