get_identities.py 文件源码

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

项目:globus-cli 作者: globus 项目源码 文件源码
def _b32_decode(v):
    assert v.startswith("u_"), "{0} didn't start with 'u_'".format(v)
    v = v[2:]
    assert len(v) == 26, "u_{0} is the wrong length".format(v)
    # append padding and uppercase so that b32decode will work
    v = v.upper() + (6 * "=")
    return str(uuid.UUID(bytes=base64.b32decode(v)))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号