def main():
    '''Executes program.

    Shows welcome and menu.
    Gets selection.
    Executes correct part of the program.'''
    show_heading('Welcome to CRYPT')
    print
    exit = False
    while not exit:
        answer = menu()
        if answer is 1:
            create_key()
        elif answer is 2:
            encode_file()
        elif answer is 3:
            decode_file()
        elif answer is 4:
            exit = True
        else:
            raise bug
Executes program.

    Shows welcome and menu.
    Gets selection.
    Executes correct part of the program.
recipes/Python/456374_Crypt/recipe-456374.py