cfs.py 文件源码

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

项目:collection 作者: skywind3000 项目源码 文件源码
def sign_extract(signature):
    if not signature:
        return None, None, None
    try:
        text = base64.standard_b64decode(signature)
    except:
        return None, None, None
    part = text.split(':')
    if len(part) != 3:
        return None, None, None
    user = part[0].strip('\r\n\t ')
    try:
        ts = long(part[1])
    except:
        return None, None, None
    verify = part[2].strip('\r\n\t ').lower()
    return user, ts, verify

# ?????
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号