pubsub.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:modernpython 作者: rhettinger 项目源码 文件源码
def check_user(user: User, password: str) -> bool:
    hashpass, salt = user_info[user].hashed_password
    target_hash_pass = hash_password(password, salt)[0]
    sleep(random.expovariate(10))
    return secrets.compare_digest(hashpass, target_hash_pass)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号