import json


def get_key(path=".keys/AES.key"):
    """
    Load key from .keys/AES.key file

    :param path: file path
    :type path: String
    :return: key
    :rtype: bytearray
    """
    with open(path, 'r') as f:
        k = json.load(f)
    return bytearray.fromhex(k["key"])