# Arup Guha
# 8/27/2023
# Program to try all 26 shifts for CIS 3362 Homework #1 Questions 1,2

cipher1 = "ftueueftqnussqefftueoxmeetmeqhqdnqqz"
cipher2 = "kbzamghppxatoxhgermphmtlahixyneerbybgwtmabkwlhhg"

for key in range(26):

    print(key, end=": ")

    # Put either cipher1 or cipher2 here, as needed.
    for x in cipher2:

        # Subtract the key...in other languages we would have to add 26
        # so mod works, but in python it should work without it.
        plain = (ord(x)-ord('a') - key + 26)%26
        print(chr(plain+ord('a')), end="")

    # Go to next line.
    print()
