attachment: chall.py #!/usr/bin/python3from hashlib import md5from string import ascii_uppercase as ALLCHARfrom random import seed, choicesfrom time import timefrom math import floor seed(floor(time()))SECRET = “”.join(choices(ALLCHAR, k=4)).encode()FLAG = open(“flag.txt”, “r”).read() def show_menu(): print( “””Select menu:[1] Play.[2] Get secret.[3] Exit””” ) def get_digest(msg): return md5(msg).hexdigest() def get_secret(): return get_digest(SECRET) def ask_string(n): print(f”Please enter string {n}”) string […]