aussiefy.py 文件源码

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

项目:ndh-challenges 作者: the-mandarine 项目源码 文件源码
def main():
    submission = raw_input("flag> ")
    low_sub = submission.lower()
    temp_list = list(low_sub)
    temp_list.reverse()
    flag = "".join(temp_list)
    new_string = ""
    for char in flag:
        if char in BASE:
            new_char = BASE[char]
        else:
            new_char = char
        new_string += new_char

    to_encode = new_string.encode('utf8')

    to_give = base64.b16encode(to_encode)
    #to_give = base64.b32encode(to_encode)
    #to_give = base64.b64encode(to_encode)
    print to_give
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号