def create_key():
    '''Generates a key.

    Shows the heading.
    Gets a destination file.
    Creates a key.
    Saves the key in the file.
    Flush the buffer.
    Closes the file.
    Prints confirmation.'''
    show_heading('CREATE KEY')
    key_file = get_destination('What will be the name of the key file?')
    key_data = create_key_data()
    Pickler(key_file).dump(key_data)
    key_file.flush()
    key_file.close()
    print 'The key has been created at the location specified.'
    print
Generates a key.

    Shows the heading.
    Gets a destination file.
    Creates a key.
    Saves the key in the file.
    Flush the buffer.
    Closes the file.
    Prints confirmation.
recipes/Python/456374_Crypt/recipe-456374.py