<commit_before>"""
cryptography.py
Author: <your name here>
Credit: <list sources used, if any>

Assignment:

Write and submit a program that encrypts and decrypts user data.

See the detailed requirements at https://github.com/HHS-IntroProgramming/Cryptography/blob/master/README.md
"""
def encrypt():
    
    
    
    
def decrypt():
    
    
a = True
while a:
    associations = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 .,:;'\"/\\<>(){}[]-=_+?!"
    command = str(input("Enter e to encrypt, d to decrypt, or q to quit: "))
    message = str(input("Message: "))
    key = str(input("Key: "))

    if command == "e":
        
    

    elif command == "d":

    elif command == "q":
        print("Goodbye!")
        a = False
    else:
        print("Did not understand command, try again.")<commit_msg>Updated from Brython Server: November 17, 2015 2:43:47 PM EST<commit_after>"""
cryptography.py
Author: <your name here>
Credit: <list sources used, if any>

Assignment:

Write and submit a program that encrypts and decrypts user data.

See the detailed requirements at https://github.com/HHS-IntroProgramming/Cryptography/blob/master/README.md
"""
def evenstrings():
    messlen = len(message)
    keylen = len(key)
    if keylen < messlen:
        modkey = (messlen // keylen)*key
        modkey2 = key[(messlen % keylen)-1]
        return modkey + modkey2
    elif keylen == messlen:
        return key
    else:
        return key[messlen]
    
    
    
    

    
    
a = True
while a:
    associations = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 .,:;'\"/\\<>(){}[]-=_+?!"
    command = str(input("Enter e to encrypt, d to decrypt, or q to quit: "))
    message = str(input("Message: "))
    key = str(input("Key: "))

    if command == "e":
        new
    

    elif command == "d":

    elif command == "q":
        print("Goodbye!")
        a = False
    else:
        print("Did not understand command, try again.")
{'fraction_non_alphanumeric': 0.13390601313794845, 'fraction_numerical': 0.017180394138453764, 'mean_word_length': 2.7288135593220337, 'pattern_counts': {'":': 6, '<': 10, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '569231', 'n_tokens_mistral': 703, 'n_tokens_neox': 662, 'n_words': 181}