I'm very confused by our task : "Develop the part of the program that generates an eight key character key the program will use to encrypt the message". We are trying to create an encryption program. The code I have so far:
Files
def fileopen():
  filename=input('What is the name of the file: ')
  with open(filename) as yarr:
        contents=yarr.read()
        return contents
Menu
print ("Hello, welcome to the encryption/decryption program")
print ("1 - Encryption")
print ("2 - Decryption")
print ("3 - Exit")
choice=input ("Enter a Number")
while True:
  if choice=="1":
        print("Encryption Selected")
        filecontents=fileopen()
        print(filecontents)
        break
  elif choice=="2":
        print("Decryption Selected")
        break
  elif choice=="3":
        print("Thank you, come again")
        break
  else:
        choice=input("Incorrect number")
        continue