google-authenticator.py 文件源码

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

项目:google-authenticator 作者: grahammitchell 项目源码 文件源码
def normalize(key):
    """Normalizes secret by removing spaces and padding with = to a multiple of 8"""
    k2 = key.strip().replace(' ','')
    # k2 = k2.upper()   # skipped b/c b32decode has a foldcase argument
    if len(k2)%8 != 0:
        k2 += '='*(8-len(k2)%8)
    return k2
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号