def decryptMessage(): pwd = "N3VIQUJmZ2pyNDVkZDRvMzNkZmd0NzBkZzlLOWRmcjJ0NWhCdmRm" key = base64.b64decode(pwd) #the decoded version of this is the key. value = input("Enter the decryption key: ").encode() if value == key: time.sleep(1) message = input("Enter the message to decode: ") decoded = base64.b64decode(message) print (decoded) menu() else: print("Decryption key is wrong.") menu()