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
评论列表
文章目录